GitHub user onurkaraman opened a pull request:

    https://github.com/apache/kafka/pull/4189

    KAFKA-6146: minimize the number of triggers enqueuing 
PreferredReplicaLeaderElection events

    We currently enqueue a PreferredReplicaLeaderElection controller event in 
PreferredReplicaElectionHandler's handleCreation, handleDeletion, and 
handleDataChange. We can just enqueue the event upon znode creation and after 
preferred replica leader election completes. The processing of this latter 
enqueue will register the exist watch on PreferredReplicaElectionZNode and 
perform any pending preferred replica leader election that may have occurred 
between completion and registration.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/onurkaraman/kafka KAFKA-6146

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/4189.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #4189
    
----
commit d7087fec5ee00bd7a13ebe435905e85845aeb29f
Author: Onur Karaman <okara...@linkedin.com>
Date:   2017-11-07T21:19:52Z

    KAFKA-6146: minimize the number of triggers enqueuing 
PreferredReplicaLeaderElection events
    
    We currently enqueue a PreferredReplicaLeaderElection controller event in 
PreferredReplicaElectionHandler's handleCreation, handleDeletion, and 
handleDataChange. We can just enqueue the event upon znode creation and after 
preferred replica leader election completes. The processing of this latter 
enqueue will register the exist watch on PreferredReplicaElectionZNode and 
perform any pending preferred replica leader election that may have occurred 
between completion and registration.

----


---

Reply via email to