prajwal-jadhav01 commented on issue #20219: URL: https://github.com/apache/pinot/issues/20219#issuecomment-7312099078
Nice proposal and a very thorough doc, @hongkunxu. Cutting duplicate Kafka reads and realtime indexing per replica would be a real saving for append-only tables. A few questions after reading it: 1. **Silent partial results during takeover (2.5 / 2.6.4).** During replay the replacement serves its indexed prefix with `exceptions=[]` and `partialResult=false`, e.g. 50 of the 100 previously visible rows. I see this matches native behaviour for a recovering replica, but in replicate mode it becomes the *normal* failure path for every leader loss rather than an edge case. Would it be worth flagging these responses (a response metadata field, or an opt-in `partialResult=true` while a replicate-mode segment is replaying) so dashboards can tell "fewer events" from "still recovering"? 2. **Strict replica-group routing.** With `strictReplicaGroup` instance selection, a query is pinned to one replica group. Since a consuming segment only lives on the leader, what happens when the chosen group isn't the leader's group: is the consuming segment treated as unavailable for that query, or does routing fall back to the leader? It might be worth stating whether replicate mode is supported with strict replica groups in the initial scope. 3. **Making BLOCKED recovery visible (2.6.3 / 3.4).** Several cases end in `Action.BLOCKED` (invalid offsets, download URL present while COMMITTING, no eligible target) and don't dispatch anything. Will these emit a controller metric or table status so operators can alert on a partition that has stopped consuming and isn't recovering? Per-partition leader identity and handoff count as metrics would also help when validating the savings in 2.6.6. 4. **Stalled leaders and leader skew (2.6.2 / 2.6.7).** The doc notes that a live leader that stalls without reporting failure isn't detected, and that a recovered server doesn't reclaim leadership. With a single consumer, a stall means zero freshness for that partition. Could ingestion lag or "no progress for N minutes" optionally trigger handoff? And after a few failovers leaders may pile up on fewer servers; is a rebalance the intended way to spread them again? Once there's a PR, I'm happy to help test the failover path (kill the leader mid-segment, measure detection and replay time) on a small local Kafka + Pinot cluster. -- 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]
