Skip to content

Commit 9488a7e

Browse files
luoluoyuyuJackieTien97
authored andcommitted
Load: Remove the getParentFile and exists checks from Load New File (#16787)
(cherry picked from commit 9121208)
1 parent 50dd714 commit 9488a7e

File tree

1 file changed

+1
-3
lines changed
  • iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion

1 file changed

+1
-3
lines changed

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3552,9 +3552,7 @@ public void loadNewTsFile(
35523552
final File tsfileToBeInserted = newTsFileResource.getTsFile().getAbsoluteFile();
35533553
final long newFilePartitionId = newTsFileResource.getTimePartitionWithCheck();
35543554

3555-
if (!TsFileValidator.getInstance().validateTsFile(newTsFileResource)
3556-
|| !tsfileToBeInserted.exists()
3557-
|| tsfileToBeInserted.getParentFile() == null) {
3555+
if (!TsFileValidator.getInstance().validateTsFile(newTsFileResource)) {
35583556
throw new LoadFileException(
35593557
"tsfile validate failed, " + newTsFileResource.getTsFile().getName());
35603558
}

0 commit comments

Comments
 (0)