jt2594838 commented on code in PR #13453:
URL: https://github.com/apache/iotdb/pull/13453#discussion_r1751142994
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/selector/utils/TsFileResourceCandidate.java:
##########
@@ -72,6 +72,7 @@ public boolean unsealed() {
}
private void prepareDeviceInfos() throws IOException {
+ boolean canCacheDeviceInfo = resource.getStatus() !=
TsFileResourceStatus.UNCLOSED;
if (deviceInfoMap == null && compactionScheduleContext != null) {
Review Comment:
Is it even necessary to calculate DeviceInfo for an unclosed file?
--
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]