You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2019/06/24 12:20:06 UTC
[incubator-iotdb] branch feature_async_close_tsfile updated: fix
unsequence update laste flush time map when flush bug
This is an automated email from the ASF dual-hosted git repository.
qiaojialin pushed a commit to branch feature_async_close_tsfile
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
The following commit(s) were added to refs/heads/feature_async_close_tsfile by this push:
new fed62b1 fix unsequence update laste flush time map when flush bug
fed62b1 is described below
commit fed62b194b2692505415e4a4eac6b95f2ab9d1e0
Author: qiaojialin <64...@qq.com>
AuthorDate: Mon Jun 24 20:19:49 2019 +0800
fix unsequence update laste flush time map when flush bug
---
.../iotdb/db/engine/filenodeV2/FileNodeProcessorV2.java | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/iotdb/src/main/java/org/apache/iotdb/db/engine/filenodeV2/FileNodeProcessorV2.java b/iotdb/src/main/java/org/apache/iotdb/db/engine/filenodeV2/FileNodeProcessorV2.java
index 890a9da..61b25fa 100755
--- a/iotdb/src/main/java/org/apache/iotdb/db/engine/filenodeV2/FileNodeProcessorV2.java
+++ b/iotdb/src/main/java/org/apache/iotdb/db/engine/filenodeV2/FileNodeProcessorV2.java
@@ -315,8 +315,15 @@ public class FileNodeProcessorV2 {
System.currentTimeMillis() + "-" + versionController.nextVersion()).toString()
+ TSFILE_SUFFIX;
- return new UnsealedTsFileProcessorV2(storageGroupName, new File(filePath),
- fileSchema, versionController, this::closeUnsealedTsFileProcessorCallback, this::updateLatestFlushTimeCallback);
+ if (sequence) {
+ return new UnsealedTsFileProcessorV2(storageGroupName, new File(filePath),
+ fileSchema, versionController, this::closeUnsealedTsFileProcessorCallback,
+ this::updateLatestFlushTimeCallback);
+ } else {
+ return new UnsealedTsFileProcessorV2(storageGroupName, new File(filePath),
+ fileSchema, versionController, this::closeUnsealedTsFileProcessorCallback,
+ ()->true);
+ }
}