mirror of https://github.com/apache/druid.git
Fix NPE in segment allocation when reduceMetadataIO is true (#17537)
This commit is contained in:
parent
0eb8d733d4
commit
3de46746ca
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue