Fix NPE in segment allocation when reduceMetadataIO is true (#17537)

This commit is contained in:
Kashif Faraz 2024-12-04 23:28:47 -08:00 committed by GitHub
parent 0eb8d733d4
commit 3de46746ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2943,7 +2943,7 @@ public class IndexerSQLMetadataStorageCoordinator implements IndexerMetadataStor
= versionIntervalToSmallestSegmentId.computeIfAbsent(segmentId.getVersion(), v -> new HashMap<>());
final SegmentId value = map.get(segmentId.getInterval());
if (value == null || value.getPartitionNum() > segmentId.getPartitionNum()) {
map.put(interval, segmentId);
map.put(segmentId.getInterval(), segmentId);
}
}