Pengzna commented on code in PR #15181:
URL: https://github.com/apache/iotdb/pull/15181#discussion_r2015645883
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java:
##########
@@ -3052,16 +3086,23 @@ private boolean loadTsFileToUnSequence(
boolean isGeneratedByPipe)
throws LoadFileException, DiskSpaceInsufficientException {
final File targetFile =
- fsFactory.getFile(
- TierManager.getInstance().getNextFolderForTsFile(0, false),
- databaseName
- + File.separatorChar
- + dataRegionId
- + File.separatorChar
- + filePartitionId
- + File.separator
- + tsFileResource.getTsFile().getName());
- tsFileResource.setFile(targetFile);
+ (tsFileResource.isGeneratedByPipeConsensus() ||
tsFileResource.isGeneratedByPipe())
+ ? pipeAndIoTV2LoadDiskSelector.getTargetFile(
+ tsFileToLoad,
+ databaseName,
+ dataRegionId,
+ filePartitionId,
+ tsFileResource.getTsFile().getName())
+ : ordinaryLoadDiskSelector.getTargetFile(
+ tsFileToLoad,
+ databaseName,
+ dataRegionId,
+ filePartitionId,
+ tsFileResource.getTsFile().getName());
+
+ // var used in lambda must be final
+ final File finalTargetFile = targetFile;
Review Comment:
fixed
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]