Skip to content

Optimize overshadowed segments computation#7595

Merged
leventov merged 33 commits into
apache:masterfrom
surekhasaharan:optimize-overshadowed-segments
Jun 7, 2019
Merged

Optimize overshadowed segments computation#7595
leventov merged 33 commits into
apache:masterfrom
surekhasaharan:optimize-overshadowed-segments

Conversation

@surekhasaharan
Copy link
Copy Markdown

Addresses part of #7571
This patch moves the computation of overshadowed segments to SQLMetadataSegmentManager's poll method. The endpoint in MetadataResource and DruidCoordinatorRuleRunner use the API MetadataSegmentManager#findOvershadowedSegments() to get overshadowed segments without building the VersionedIntervalTimeline every time.
Renamed SegmentWithOvershadowedStatus to DataSegmentWithOvershadowedStatus.

This PR does not address the mutability of DataSegment and getting rid of interning in MatadataSegmentView

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants