Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
Description
When we use the native java client
try { zk = new ZooKeeper(connectString, (int) sessionTimeout, null); } catch (IOException e) { throw new DBException("Creating connection failed."); }
We will get the following, this issue had existed in all the zookeeper releases for a long time
2019-10-14 18:41:49 ERROR ClientCnxn:537 - Error while calling watcher2019-10-14 18:41:49 ERROR ClientCnxn:537 - Error while calling watcherjava.lang.NullPointerException at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:535) at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:510)2019-10-14 18:41:50 ERROR ClientCnxn:537 - Error while calling watcherjava.lang.NullPointerException at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:535) at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:510)