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

Mohammad Arshad commented on ZOOKEEPER-2695:
--------------------------------------------

IllegalArgumentException is thrown only for known error code, as per the 
current source code, only 0 and -12 can throw IllegalArgumentException. So 
IllegalArgumentException is thrown only for know error codes. My earlier 
understanding on this was wrong.

> 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