[ 
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 added.
This new error code will be unknown error code for the old clients. Old clients 
will throw NullPointerException while processing these unknown
{code}
java.lang.NullPointerException
        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)
{code}

> 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
(v6.3.15#6346)

Reply via email to