Skip to content

Commit

Permalink
Fix NPE in segment allocation when reduceMetadataIO is true (apache#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
kfaraz authored Dec 5, 2024
1 parent 0eb8d73 commit 3de4674
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2943,7 +2943,7 @@ Set<DataSegment> retrieveUsedSegmentsForAllocation(
= 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);
}
}

Expand Down

0 comments on commit 3de4674

Please sign in to comment.