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 b77e232 fix NativeRestoreableIoWrite does not close out stream if can
not write
b77e232 is described below
commit b77e232fd6f2d7208665bcf5abe110b9a336953d
Author: xiangdong huang <[email protected]>
AuthorDate: Wed Mar 6 16:55:42 2019 +0800
fix NativeRestoreableIoWrite does not close out stream if can not write
---
.../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 3c88b44..e33ddfd 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
@@ -93,6 +93,7 @@ public class NativeRestorableIOWriter extends TsFileIOWriter {
LOGGER.debug("{} is an complete TsFile.", file.getAbsolutePath());
canWrite = false;
reader.close();
+ out.close();
return;
}