Skip to content

Commit

Permalink
Pulling in latest changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoe committed Nov 28, 2023
1 parent 411dbac commit 8812495
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1203,15 +1203,15 @@ private DataSegmentTimelineView makeDataSegmentTimelineView()
// Fetch all published, used segments (all non-realtime segments) from the metadata store.
// If the task is operating with a REPLACE lock,
// any segment created after the lock was acquired for its interval will not be considered.
final Collection<DataSegment> publishedUsedSegments = new HashSet<>();
for (Interval interval : intervals) {
RetrieveSegmentsToReplaceAction action = new RetrieveSegmentsToReplaceAction(dataSource, interval);
try {
publishedUsedSegments.addAll(context.taskActionClient().submit(action));
}
catch (IOException e) {
return Optional.empty();
}
final Collection<DataSegment> publishedUsedSegments;
try {
publishedUsedSegments = context.taskActionClient().submit(new RetrieveSegmentsToReplaceAction(
dataSource,
intervals
));
}
catch (IOException e) {
throw new MSQException(e, UnknownFault.forException(e));
}

int realtimeCount = 0;
Expand Down

0 comments on commit 8812495

Please sign in to comment.