tarun11Mavani opened a new pull request, #17352:
URL: https://github.com/apache/pinot/pull/17352

   ### Problem
   As discussed in #17337, Segments are incorrectly deleted when any single 
replica reported zero valid documents, causing permanent data loss during 
server restarts and async state transitions where replicas had inconsistent 
validDocIds.
   
   ### Solution
   Added consensus requirement: only delete/compact segments when ALL replicas 
agree on validDoc counts
   Prevents race conditions during OFFLINE→ONLINE transitions and tie-breaking 
logic divergence
   
   ### Changes
   - New hasValidDocConsensus() method to verify replica agreement before 
operation to select segment for deletion or compaction


-- 
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]

Reply via email to