This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 9121208304c Load: Remove the getParentFile and exists checks from Load
New File (#16787)
9121208304c is described below
commit 9121208304c2ad930f58ba2d59ac2bd4bd1f1065
Author: Zhenyu Luo <[email protected]>
AuthorDate: Mon Nov 24 09:33:52 2025 +0800
Load: Remove the getParentFile and exists checks from Load New File (#16787)
---
.../java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java
index 0889ad37559..0dbe6b8870f 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java
@@ -3470,9 +3470,7 @@ public class DataRegion implements IDataRegionForQuery {
final File tsfileToBeInserted =
newTsFileResource.getTsFile().getAbsoluteFile();
final long newFilePartitionId =
newTsFileResource.getTimePartitionWithCheck();
- if (!TsFileValidator.getInstance().validateTsFile(newTsFileResource)
- || !tsfileToBeInserted.exists()
- || tsfileToBeInserted.getParentFile() == null) {
+ if (!TsFileValidator.getInstance().validateTsFile(newTsFileResource)) {
throw new LoadFileException(
"tsfile validate failed, " +
newTsFileResource.getTsFile().getName());
}