[ 
https://issues.apache.org/jira/browse/KAFKA-17147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18018978#comment-18018978
 ] 

TaiJuWu commented on KAFKA-17147:
---------------------------------

Hi [~jsancio] , if you are not working on this, may I pick it up?

> Improve KRaft add voter handling to tolerate waiting for delayed operations
> ---------------------------------------------------------------------------
>
>                 Key: KAFKA-17147
>                 URL: https://issues.apache.org/jira/browse/KAFKA-17147
>             Project: Kafka
>          Issue Type: Sub-task
>          Components: kraft
>            Reporter: José Armando García Sancio
>            Assignee: José Armando García Sancio
>            Priority: Major
>
> The current implementation for AddVoter returns an REQUEST_TIMED_OUT error 
> anytime it needs to wait for an invariant to be satisfied. From 
> [https://cwiki.apache.org/confluence/display/KAFKA/KIP-853%3A+KRaft+Controller+Membership+Changes#KIP853:KRaftControllerMembershipChanges-Handling.3:]
>  
>  # Wait until there are no uncommitted VotersRecord. Note that the 
> implementation may just return a {{REQUEST_TIMED_OUT}} error if there are 
> pending operations.
>  # Wait for the LeaderChangeMessage control record from the current epoch to 
> get committed. Note that the implementation may just return a 
> {{REQUEST_TIMED_OUT}} error if there are pending operations.
>  # ...
> This algorithm could be improved to wait for the invariant to become true 
> instead of returning a timeout immediately. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to