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

ASF GitHub Bot commented on KAFKA-4445:
---------------------------------------

GitHub user lindong28 opened a pull request:

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

    KAFKA-4445; PreferredLeaderElectionCommand should query zookeeper only once 
per topic

    

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

    $ git pull https://github.com/lindong28/kafka KAFAK-4445

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

    https://github.com/apache/kafka/pull/2170.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 #2170
    
----
commit e5bd956c070afe2c5ca72ea53a7baa25c62f257b
Author: Dong Lin <lindon...@gmail.com>
Date:   2016-11-25T06:01:53Z

    KAFKA-4445; PreferredLeaderElectionCommand should query zookeeper only once 
per topic

----


> PreferredLeaderElectionCommand should query zk only once per topic
> ------------------------------------------------------------------
>
>                 Key: KAFKA-4445
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4445
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Dong Lin
>            Assignee: Dong Lin
>
> Currently PreferredLeaderElection will query zookeeper once for every 
> partition that are included in the preferred leader election. This is very 
> inefficient and makes the preferred leader election script slow. It should 
> only query zookeeper once per topic.
> In addition, the script currently reports that the preferred leader election 
> is successfully even if some partitions are not found in the zookeeper.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to