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 2022/05/13 10:04:41 UTC

[GitHub] [iotdb] HeimingZ commented on a diff in pull request #5892: [IOTDB-3160] TsFile will be corrupted when flushing memtable appears OOM

HeimingZ commented on code in PR #5892:
URL: https://github.com/apache/iotdb/pull/5892#discussion_r872214838


##########
server/src/main/java/org/apache/iotdb/db/engine/storagegroup/TsFileProcessor.java:
##########
@@ -1236,7 +1252,24 @@ public void flushOneMemTable() {
                 tsFileResource.getTsFile().getName(),
                 e1);
           }
-          Thread.currentThread().interrupt();
+          // release resource
+          try {
+            syncReleaseFlushedMemTable(memTableToFlush);
+            for (CloseFileListener closeFileListener : closeFileListeners) {
+              closeFileListener.onClosed(this);

Review Comment:
   Fixed, I will set time index to its initial status.



-- 
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