You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2019/03/06 05:51:07 UTC
[incubator-iotdb] branch feature_read_data_from_unclosed_tsfile
updated: fix Test failure in Win (forget to close the reader stream)
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 <sa...@gmail.com>
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();
}
}