Skip to content

Commit 9121208

Browse files
authored
Load: Remove the getParentFile and exists checks from Load New File (#16787)
1 parent c76c5fe commit 9121208

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
@@ -3470,9 +3470,7 @@ public void loadNewTsFile(
34703470
final File tsfileToBeInserted = newTsFileResource.getTsFile().getAbsoluteFile();
34713471
final long newFilePartitionId = newTsFileResource.getTimePartitionWithCheck();
34723472

3473-
if (!TsFileValidator.getInstance().validateTsFile(newTsFileResource)
3474-
|| !tsfileToBeInserted.exists()
3475-
|| tsfileToBeInserted.getParentFile() == null) {
3473+
if (!TsFileValidator.getInstance().validateTsFile(newTsFileResource)) {
34763474
throw new LoadFileException(
34773475
"tsfile validate failed, " + newTsFileResource.getTsFile().getName());
34783476
}

0 commit comments

Comments
 (0)