aoozdemir edited a comment on issue #156: ZOOKEEPER-2044:CancelledKeyException 
in zookeeper 3.4.5.
URL: https://github.com/apache/zookeeper/pull/156#issuecomment-604373972
 
 
   @maoling 
   I'm guessing that it's not critical, but it's not ideal to have the error 
all the time. Below is the error log we get with the `zookeeper metricbeat 
module` enabled. We use the version 7.6 if that's related as well. I don't know 
what else you need, however, this is the image we use;
   ```
   image: "k8s.gcr.io/kubernetes-zookeeper:1.0-3.4.10"
   ```
   and the configuration for the start-zookeeper;
   ```
   start-zookeeper \
             --servers=3 \
             --data_dir=/var/lib/zookeeper/data \
             --data_log_dir=/var/lib/zookeeper/data/log \
             --conf_dir=/opt/zookeeper/conf \
             --client_port=2181 \
             --election_port=3888 \
             --server_port=2888 \
             --tick_time=2000 \
             --init_limit=10 \
             --sync_limit=5 \
             --heap=512M \
             --max_client_cnxns=60 \
             --snap_retain_count=3 \
             --purge_interval=12 \
             --max_session_timeout=40000 \
             --min_session_timeout=4000 \
             --log_level=INFO
   ```
   
   ---
   
   ```
   2020-03-26T10:04:45.382Z    2020-03-26 10:04:45,382 [myid:3] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@883] - Processing mntr 
command from /__IPADDRESSOMITTED__:58844
   2020-03-26T10:04:45.382Z    2020-03-26 10:04:45,382 [myid:3] - INFO  
[Thread-48554:NIOServerCnxn@1044] - Closed socket connection for client 
/__IPADDRESSOMITTED__:58844 (no session established for client)
   2020-03-26T10:04:45.386Z    Exception in thread "Thread-48553" 
java.nio.channels.CancelledKeyException
   2020-03-26T10:04:45.387Z        at 
sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:73)
   2020-03-26T10:04:45.387Z        at 
org.apache.zookeeper.server.ServerCnxn.dumpConnectionInfo(ServerCnxn.java:500)
   2020-03-26T10:04:45.387Z        at 
org.apache.zookeeper.server.NIOServerCnxn.getInterestOps(NIOServerCnxn.java:1180)
   2020-03-26T10:04:45.387Z        at 
org.apache.zookeeper.server.NIOServerCnxn$CommandThread.run(NIOServerCnxn.java:515)
   2020-03-26T10:04:45.387Z        at 
sun.nio.ch.SelectionKeyImpl.interestOps(SelectionKeyImpl.java:77)
   2020-03-26T10:04:45.387Z        at 
org.apache.zookeeper.server.NIOServerCnxn$ConsCommand.commandRun(NIOServerCnxn.java:715)
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to