diff --git a/README.md b/README.md index 86b5830..2801727 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Supported column types are listed below. Java type mapping refer to [docs](docs/ com.alibaba.database innodb-java-reader - 1.0.4 + 1.0.5 ``` diff --git a/innodb-heatmap/pom.xml b/innodb-heatmap/pom.xml index 97aae99..3c89b36 100644 --- a/innodb-heatmap/pom.xml +++ b/innodb-heatmap/pom.xml @@ -8,12 +8,12 @@ com.alibaba.database innodb-java-reader-parent ../pom.xml - 1.0.5-SNAPSHOT + 1.0.5 com.alibaba.database innodb-heatmap - 1.0.5-SNAPSHOT + 1.0.5 jar innodb-heatmap innodb-heatmap diff --git a/innodb-java-reader-cli/pom.xml b/innodb-java-reader-cli/pom.xml index 5c8dfb5..1c320dc 100644 --- a/innodb-java-reader-cli/pom.xml +++ b/innodb-java-reader-cli/pom.xml @@ -8,12 +8,12 @@ com.alibaba.database innodb-java-reader-parent ../pom.xml - 1.0.5-SNAPSHOT + 1.0.5 com.alibaba.database innodb-java-reader-cli - 1.0.5-SNAPSHOT + 1.0.5 jar innodb-java-reader-cli innodb-java-reader-cli diff --git a/innodb-java-reader-demo/pom.xml b/innodb-java-reader-demo/pom.xml index 0bd81d0..62e4284 100644 --- a/innodb-java-reader-demo/pom.xml +++ b/innodb-java-reader-demo/pom.xml @@ -8,12 +8,12 @@ com.alibaba.database innodb-java-reader-parent ../pom.xml - 1.0.5-SNAPSHOT + 1.0.5 com.alibaba.database innodb-java-reader-demo - 1.0.5-SNAPSHOT + 1.0.5 jar innodb-java-reader-demo innodb-java-reader-demo diff --git a/innodb-java-reader/pom.xml b/innodb-java-reader/pom.xml index f32e656..10dc259 100644 --- a/innodb-java-reader/pom.xml +++ b/innodb-java-reader/pom.xml @@ -8,12 +8,12 @@ com.alibaba.database innodb-java-reader-parent ../pom.xml - 1.0.5-SNAPSHOT + 1.0.5 com.alibaba.database innodb-java-reader - 1.0.5-SNAPSHOT + 1.0.5 jar innodb-java-reader innodb-java-reader diff --git a/innodb-java-reader/src/main/java/com/alibaba/innodb/java/reader/TableReaderImpl.java b/innodb-java-reader/src/main/java/com/alibaba/innodb/java/reader/TableReaderImpl.java index 876ff65..a5b4813 100644 --- a/innodb-java-reader/src/main/java/com/alibaba/innodb/java/reader/TableReaderImpl.java +++ b/innodb-java-reader/src/main/java/com/alibaba/innodb/java/reader/TableReaderImpl.java @@ -74,6 +74,9 @@ public TableReaderImpl(String ibdFilePath, TableDef tableDef) { } public TableReaderImpl(String ibdFilePath, TableDef tableDef, KeyComparator keyComparator) { + if (ibdFilePath != null) { + ibdFilePath = ibdFilePath.trim(); + } this.ibdFilePath = ibdFilePath; this.tableDef = tableDef; this.keyComparator = keyComparator; @@ -91,7 +94,7 @@ public void open() { indexService = new IndexServiceImpl(storageService, tableDef, keyComparator); log.debug("{}", tableDef); } catch (IOException e) { - throw new ReaderException("Open " + ibdFilePath + " failed", e); + throw new ReaderException("Open " + ibdFilePath + " failed " + e.getMessage(), e); } } diff --git a/pom.xml b/pom.xml index d85cbda..086c163 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ 4.0.0 com.alibaba.database innodb-java-reader-parent - 1.0.5-SNAPSHOT + 1.0.5 innodb-java-reader-parent pom A library and command-line tool to access MySQL InnoDB data file directly in Java