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 2020/04/22 08:34:17 UTC
[GitHub] [incubator-iotdb] zhanglingzhe0820 opened a new pull request #1086: update merge selector to filter close
zhanglingzhe0820 opened a new pull request #1086:
URL: https://github.com/apache/incubator-iotdb/pull/1086
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-iotdb] jt2594838 commented on a change in pull request #1086: update merge selector to filter close
Posted by GitBox <gi...@apache.org>.
jt2594838 commented on a change in pull request #1086:
URL: https://github.com/apache/incubator-iotdb/pull/1086#discussion_r412797310
##########
File path: server/src/main/java/org/apache/iotdb/db/engine/merge/selector/MaxFileMergeFileSelector.java
##########
@@ -201,6 +201,17 @@ private void updateSelectedFiles(long newCost, TsFileResource unseqFile) {
}
}
+ private boolean checkClosed(TsFileResource unseqFile) {
+ boolean isClosed = unseqFile.isClosed();
Review comment:
You may return here as soon as the unseqFile itself is found unclosed.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org