zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohammad Arshad (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-2695) Handle unknown error for rolling upgrade old client new server scenario
Date Wed, 22 Feb 2017 14:55:44 GMT

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

Mohammad Arshad commented on ZOOKEEPER-2695:

For unknown errors, clients always throw NullPointerException
Suppose in new version of server for getChildren() API for new scenario new error code is
This new error code will be unknown error code for the old clients. Old clients will throw
NullPointerException while processing these unknown
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:91)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:2465)

> Handle unknown error for rolling upgrade old client new server scenario
> -----------------------------------------------------------------------
>                 Key: ZOOKEEPER-2695
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2695
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: java client
>            Reporter: Mohammad Arshad
>            Assignee: Mohammad Arshad
> In Zookeeper rolling upgrade scenario where server is new but client is old, when sever
sends error code which is not understood by the client, client throws NullPointerException.

> KeeperException.SystemErrorException should be thrown for all unknown error code.

This message was sent by Atlassian JIRA

View raw message