Skip to content

Commit

Permalink
Improve concurrency between DruidSchema and BrokerServerView (apache#…
Browse files Browse the repository at this point in the history
…11457)

* Improve concurrency between DruidSchema and BrokerServerView

* unused imports and workaround for error prone faiure

* count only known segments

* add comments
  • Loading branch information
jihoonson authored Aug 6, 2021
1 parent 39a3db7 commit e9d964d
Show file tree
Hide file tree
Showing 5 changed files with 1,515 additions and 345 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ protected void segmentCallbackRemoved(SegmentCallback callback)
segmentPredicates.remove(callback);
}

static class FilteringSegmentCallback implements SegmentCallback
public static class FilteringSegmentCallback implements SegmentCallback
{

private final SegmentCallback callback;
private final Predicate<Pair<DruidServerMetadata, DataSegment>> filter;

FilteringSegmentCallback(SegmentCallback callback, Predicate<Pair<DruidServerMetadata, DataSegment>> filter)
public FilteringSegmentCallback(SegmentCallback callback, Predicate<Pair<DruidServerMetadata, DataSegment>> filter)
{
this.callback = callback;
this.filter = filter;
Expand Down
Loading

0 comments on commit e9d964d

Please sign in to comment.