Doris-Breakwater commented on issue #71164: URL: https://github.com/apache/doris/issues/71164#issuecomment-7277600643
Confirmed by source inspection on `dc5517d7afb` and `4.1.5-release`. The checker groups inflight tasks by destination BE and discards their original `(tabletId, clusterId)` keys. When a destination is missing or past the dead-BE grace period, the cleanup builds a list of synthetic keys before removing any entries. For a stable map with `N` entries and `T` tasks for that BE, the list holds `T × N` keys and list nodes. The synthetic keys can also match a pending task for the same tablet in a healthy compute group. If that entry is removed before its completion is handled, the lookup misses and the handler returns without updating that group's routing. [Master cleanup](https://github.com/apache/doris/blob/dc5517d7afb/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudTabletRebalancer.java#L861-L926) · [4.1.5 cleanup](https://github.com/apache/doris/blob/917b20be83878e98f94e3ebf7efccc80346e3e50/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudTabletRebalancer.j ava#L831-L896) · [Completion handler](https://github.com/apache/doris/blob/dc5517d7afb/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudTabletRebalancer.java#L1748-L1798) If allocation fails during list construction, the scheduled checker can retry with the same pending tasks. While those entries remain, `statRouteInfo()` can still count their destinations in the future route maps. The async warm-up timeout is evaluated in the completion handler, which the missing and dead destination paths bypass. [Checker schedule](https://github.com/apache/doris/blob/dc5517d7afb/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudTabletRebalancer.java#L300-L313) · [Future route accounting](https://github.com/apache/doris/blob/dc5517d7afb/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudTabletRebalancer.java#L1412-L1422) For the PR, keep the original key and task together when grouping by destination. For each missing or long-dead destination, remove each observed entry with `remove(key, observedTask)` so a replacement task under the same key survives. This makes cleanup linear in the inflight entries across all destinations. Please cover a missing BE, a dead BE on each side of the grace period, and a shared tablet ID whose task in the healthy compute group remains pending and completes normally. The standalone benchmark supports the allocation mechanism. To confirm that it caused the reported FE pauses, please share the exact FE build, JVM version and heap settings, and timestamped FE and GC logs around the drop or last heartbeat. Include the `before pre cache check` counts for the affected destination and the total inflight count if available. An OOM stack trace or a heap allocation or retention summary that identifies the checker would help confirm attribution. If the cross-group effect was observed in the cluster, please include the matching tablet and compute-group IDs and the `cannot find inflight task` log. Breakwater-GitHub-Analysis-Slot: slot_51c16dea0339 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
