Yan Zhao created ZOOKEEPER-4793:
-----------------------------------

             Summary: The zookeeper server return the wrong response for ruok 
command.
                 Key: ZOOKEEPER-4793
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4793
             Project: ZooKeeper
          Issue Type: Improvement
          Components: server
    Affects Versions: 3.9.1
            Reporter: Yan Zhao


Users often use the ruok command to probe the zookeeper server status. If the 
ruok command doesn't return the response, the automation tool will restart the 
zookeeper.

But if the quorum zookeeper server encounters some unexpected error, it changes 
the state to State.ERROR. That means the server can't serve the service 
anymore. But the ruok still returns the `imok`. 

In this case, it should return `This ZooKeeper instance is not currently 
serving requests` like other command(WatchCommand)



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

Reply via email to