You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Mate Szalay-Beko (Jira)" <ji...@apache.org> on 2019/12/11 11:07:00 UTC
[jira] [Created] (ZOOKEEPER-3645) C CLI should close session
properly
Mate Szalay-Beko created ZOOKEEPER-3645:
-------------------------------------------
Summary: C CLI should close session properly
Key: ZOOKEEPER-3645
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3645
Project: ZooKeeper
Issue Type: Bug
Affects Versions: 3.5.6
Reporter: Mate Szalay-Beko
Assignee: Mate Szalay-Beko
Whenever you quit from the C command line client, you got a warning on the server logs like:
```
2019-12-11 10:28:40,973 [myid:] - WARN [NIOWorkerThread-6:NIOServerCnxn@364] - Unexpected exception
EndOfStreamException: Unable to read additional data from client, it probably closed the socket: address = /0:0:0:0:0:0:0:1:51026, session = 0x1000012817e001c
at org.apache.zookeeper.server.NIOServerCnxn.handleFailedRead(NIOServerCnxn.java:163)
at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:326)
at org.apache.zookeeper.server.NIOServerCnxnFactory$IOWorkRequest.doWork(NIOServerCnxnFactory.java:522)
at org.apache.zookeeper.server.WorkerService$ScheduledWorkRequest.run(WorkerService.java:154)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
```
This happens no matter how you exit from the C command-line client. E.g.:
- using Ctrl-C
- using the `quit` command
- using the `--cmd` option and executing a single command
--
This message was sent by Atlassian Jira
(v8.3.4#803005)