zookeeper-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [zookeeper] maoling opened a new pull request #1764: ZOOKEEPER-4377: KeeperException.create has NullPointerException when low version client requests the high version server
Date Sat, 25 Sep 2021 12:38:31 GMT

maoling opened a new pull request #1764:
URL: https://github.com/apache/zookeeper/pull/1764

   - When low version client accessed the high version server which has some new added error
code, the client will get a NPE:
   at org.apache.zookeeper.KeeperException.create(KeeperException.java:94) 
   at org.apache.zookeeper.KeeperException.create(KeeperException.java:54)
   at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:1538)
   - How to reproduce this issue´╝čFor example: 
   the client version we using is 3.6.0, and server version we using is 3.7.0 which has a
new added error code QUOTAEXCEEDED(-125), 
   we set quota at server side and use the client to create znodes which exceeds the quota,
   the client will get a NPE
   - Apply this patch, we will get the following:
    java.lang.IllegalArgumentException: The current client version cannot lookup this code:-125
    at org.apache.zookeeper.KeeperException$Code.get(KeeperException.java:449)
    at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:1347)
   - we should backport this PR to all branches, making the client has upward compatibility
   - more details in the [ZOOKEEPER-4377](https://issues.apache.org/jira/browse/ZOOKEEPER-4377)

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@zookeeper.apache.org

For queries about this service, please contact Infrastructure at:

View raw message