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 99b01af fix Test failure in Win (forget to close the reader stream)
99b01af is described below
commit 99b01afe0dce086a1450f0ee4800db920f126083
Author: xiangdong huang <[email protected]>
AuthorDate: Wed Mar 6 13:50:56 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 5eb3014..d5bb079 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
@@ -184,6 +184,7 @@ public class NativeRestorableIOWriter extends
TsFileIOWriter {
LOGGER.info("File {} has {} bytes, and will be truncated from {}.",
file.getAbsolutePath(), file.length(), truncatedPosition);
out.truncate(truncatedPosition);
+ reader.close();
}
}