choubenson commented on code in PR #12627: URL: https://github.com/apache/iotdb/pull/12627#discussion_r1621611096
########## iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/utils/TsFileResourceUtils.java: ########## @@ -122,8 +122,8 @@ public static boolean validateTsFileResourceCorrectness(TsFileResource resource) } public static boolean validateTsFileIsComplete(TsFileResource resource) { - if (!resource.getTsFile().exists() - || resource.getTsFile().length() + if (resource.getTsFile().exists() + && resource.getTsFile().length() Review Comment: Since empty files are allowed, the check here should be based on the premise that the file exists before determining whether it is complete. -- 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-unsubscr...@iotdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org