zookeeper-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-3385) Add admin command to display leader
Date Tue, 04 Jun 2019 23:41:00 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-3385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16856197#comment-16856197

Hudson commented on ZOOKEEPER-3385:

FAILURE: Integrated in Jenkins build ZooKeeper-trunk #555 (See [https://builds.apache.org/job/ZooKeeper-trunk/555/])
ZOOKEEPER-3385: Add admin command to display leader (hanm: rev f63a831d67bd12303a3e1578126f2a09819fecd5)
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/Leader.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/Observer.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/Follower.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/admin/Commands.java
* (edit) zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumPeer.java

> Add admin command to display leader
> -----------------------------------
>                 Key: ZOOKEEPER-3385
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3385
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: server
>    Affects Versions: 3.6.0
>            Reporter: Brian Nixon
>            Priority: Trivial
>              Labels: pull-request-available
>             Fix For: 3.6.0
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
> Each QuorumPeer prints the identity of the server it believes is the leader in its logs
but that is not easily turned into diagnostic information about the state of the ensemble.
It can be useful in debugging various issues, both when a quorum is struggling to be established
and when a minority of peers are failing to follow, to see at a glance which peers are following
the leader elected by the majority and which peers are either not following or following a
different server.
> Create an admin command that exposes which server a peer believes is the current leader.

This message was sent by Atlassian JIRA

View raw message