apoorvmittal10 commented on PR #16842:
URL: https://github.com/apache/kafka/pull/16842#issuecomment-2277810093

   > I'm not quite sure about this one. Integrating the leader epoch into the 
persister write API is good, but I am not sure whether the handling of the 
fenced case makes sense. Essentially, if the Write RPC returns a fenced error, 
it means that a later leader epoch is being used for this share-partition 
state, and that means another share-partition leader for this partition is 
using a later epoch, which presumably means this SPL is philosophically dead.
   
   Hmm, the only scenario I was thinking about that if partition epoch is 
bumped for any other reason and same broker remains the partition leader then a 
retry should be needed to fetch latest partition epoch. If that's not true then 
I agree that retry doesn't make sense.
   
   I was also thinking if we should have an identiifer/boolean in SPL that can 
be toggled when SPL is not a leader. This identifier once set to false will 
fail all requests with not leader exception, if received any call. So client 
can switch to new leader.


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

Reply via email to