mirror of https://github.com/apache/druid.git
fd7864ae33
In clusters with a large number of segments, the duty `MarkAsUnusedOvershadowedSegments` can take a long very long time to finish. This is because of the costly invocation of `timeline.isOvershadowed` which is done for every used segment in every coordinator run. Changes - Use `DataSourceSnapshot.getOvershadowedSegments` to get all overshadowed segments - Iterate over this set instead of all used segments to identify segments that can be marked as unused - Mark segments as unused in the DB in batches rather than one at a time - Refactor: Add class `SegmentTimeline` for ease of use and readability while using a `VersionedIntervalTimeline` of segments. |
||
---|---|---|
.. | ||
assets | ||
cluster | ||
resources | ||
src/test | ||
.gitignore | ||
cluster.sh | ||
pom.xml |