You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2021/07/27 08:30:56 UTC

[GitHub] [iotdb] qiaojialin commented on a change in pull request #3610: [IOTDB-1496] Timed flush memtable

qiaojialin commented on a change in pull request #3610:
URL: https://github.com/apache/iotdb/pull/3610#discussion_r677234611



##########
File path: server/src/main/java/org/apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java
##########
@@ -1552,6 +1552,29 @@ private void checkFileTTL(TsFileResource resource, long ttlLowerBound, boolean i
     }
   }
 
+  public void timedFlushMemTable() {
+    List<TsFileProcessor> tsFileProcessors = new ArrayList<>();
+    // only check unsequence tsfiles' memtables
+    tsFileProcessors.addAll(workUnsequenceTsFileProcessors.values());
+    long timestampBaseline = System.currentTimeMillis() - config.getUnseqMemtableFlushInterval();

Review comment:
       put into writeLock




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org