fvaleri opened a new pull request, #24414:
URL: https://github.com/apache/kafka/pull/24414

   Add utility methods and builder helpers to MirrorPartitionMetadata for use 
by the mirror partition state machine (KIP-1279):
   
   - orEmpty: null-safe accessor returning EMPTY when given null.
   - Builder.withStateTransition: transitions to a target state and computes 
error-related fields (error message, retry attempt count, previous state) in a 
single call, eliminating ordering dependencies between withState and error 
field setters.
   - Builder.withFailedStateReset: clears all failure-related fields after a 
successful recovery from FAILED.
   - isValidStateTransition: validates state machine transitions per KIP-1279.
   


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