This is an automated email from the ASF dual-hosted git repository.
hxd pushed a commit to branch feature_read_data_from_unclosed_tsfile
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
The following commit(s) were added to
refs/heads/feature_read_data_from_unclosed_tsfile by this push:
new c755c6b fix Test failure in Win (forget to close the reader stream)
c755c6b is described below
commit c755c6b51b96798fbd1b0d79cf0a680d5c946862
Author: xiangdong huang <[email protected]>
AuthorDate: Wed Mar 6 15:09:21 2019 +0800
fix Test failure in Win (forget to close the reader stream)
---
.../org/apache/iotdb/tsfile/write/writer/NativeRestorableIOWriter.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/tsfile/src/main/java/org/apache/iotdb/tsfile/write/writer/NativeRestorableIOWriter.java
b/tsfile/src/main/java/org/apache/iotdb/tsfile/write/writer/NativeRestorableIOWriter.java
index d5bb079..3c88b44 100644
---
a/tsfile/src/main/java/org/apache/iotdb/tsfile/write/writer/NativeRestorableIOWriter.java
+++
b/tsfile/src/main/java/org/apache/iotdb/tsfile/write/writer/NativeRestorableIOWriter.java
@@ -92,6 +92,7 @@ public class NativeRestorableIOWriter extends TsFileIOWriter {
if (reader.readTailMagic().equals(reader.readHeadMagic(true))) {
LOGGER.debug("{} is an complete TsFile.", file.getAbsolutePath());
canWrite = false;
+ reader.close();
return;
}