Repository navigation
feat: introduce 'ignorePendingHandoffAndCompaction' param in coordinator status to unblock Coordinator lifecycle updates - #20969
Conversation
…to unblock Coordinator lifecycle updates
FrankChen021
left a comment
There was a problem hiding this comment.
🟡 Changes recommended
Fix compaction-shadow detection before merging. With multiple still-used versions of the same interval, an intermediate compaction output can remain counted as under-replicated even though it is no longer query-visible, keeping the lifecycle-facing endpoint nonzero.
Reviewed 11 of 11 changed files; findings in 1 file.
Validation: git diff --check 837f3c295226c03bd35c961bca28fa038db7f161..3d05772b308a376796ac3e402eb97fb412fb3ab4 passed. No tests or builds were run; review was static.
| Severity | Findings |
|---|---|
| P0 | 0 |
| P1 | 0 |
| P2 | 1 |
| P3 | 0 |
| Total | 1 |
This is an automated review by Codex GPT-5.6-Luna(max)
After addressing the findings or replying to the comments, you can request another review from me to trigger a new automated review.
| final Set<SegmentId> overshadowingIds = new HashSet<>(); | ||
| for (DataSegment overshadowed : overshadowedSegments) { | ||
| final Set<DataSegment> candidates = | ||
| getAllUsedNonOvershadowedSegments(overshadowed.getDataSource(), overshadowed.getInterval()); |
There was a problem hiding this comment.
[P2] Include intermediate compaction outputs
Finding: If v1 is still used, compaction publishes v2, and another compaction publishes v3 before cleanup, v2 both overshadows v1 and is itself overshadowed by v3. The non-overshadowed lookup returns only v3, so v2 is omitted from the ignored IDs and its missing replicas are still counted.
Suggestion: Determine overshadowing IDs from all used segments, including segments that are themselves overshadowed, and add a regression test for a v1 → v2 → v3 chain.
Description
GET /druid/coordinator/v1/loadstatus?fullcounts the missing replicas of all used segments.On a cluster with continuous ingestion and compaction, two types of segments keep this count above zero:
Added the
ignorePendingHandoffAndCompactionquery parameterWhen you set the parameter, the endpoint skips:
All other segments count as usual, including new segments from batch ingestion and segments that lost their replicas.
The default response, the metrics, and the
simplemode do not change.