You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Enrico Olivelli (Jira)" <ji...@apache.org> on 2022/05/31 11:45:00 UTC

[jira] [Created] (ZOOKEEPER-4551) Do not log spammy stacktrace when a client closes its connection

Enrico Olivelli created ZOOKEEPER-4551:
------------------------------------------

             Summary: Do not log spammy stacktrace when a client closes its connection
                 Key: ZOOKEEPER-4551
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4551
             Project: ZooKeeper
          Issue Type: Improvement
          Components: server
            Reporter: Enrico Olivelli
            Assignee: Enrico Olivelli


Currently (3.8, but this has always been happening IIRC), the server logs a scary stacktrace when a client closes its connection.

This is not something the administrator should be afraid of, so we should not write the stacktrace on the logs.

 
{code:java}
 
2022-05-31T08:55:22,205+0000 [NIOWorkerThread-1] WARN  org.apache.zookeeper.server.NIOServerCnxn - Unexpected exception                                                                                          │
│ org.apache.zookeeper.server.ServerCnxn$EndOfStreamException: Unable to read additional data from client, it probably closed the socket: address = /10.44.1.5:43468, session = 0x100002ec7a30032                  │
│     at org.apache.zookeeper.server.NIOServerCnxn.handleFailedRead(NIOServerCnxn.java:170) ~[org.apache.zookeeper-zookeeper-3.8.0.jar:3.8.0]                                                                      │
│     at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:333) [org.apache.zookeeper-zookeeper-3.8.0.jar:3.8.0]                                                                                   │
│     at org.apache.zookeeper.server.NIOServerCnxnFactory$IOWorkRequest.doWork(NIOServerCnxnFactory.java:508) [org.apache.zookeeper-zookeeper-3.8.0.jar:3.8.0]                                                     │
│     at org.apache.zookeeper.server.WorkerService$ScheduledWorkRequest.run(WorkerService.java:153) [org.apache.zookeeper-zookeeper-3.8.0.jar:3.8.0]            
{code}
                                                  │
│     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]                                                                                                                     │
│     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]                                                                                                                     │
│     at java.lang.Thread.run(Thread.java:829) [?:?]    



--
This message was sent by Atlassian Jira
(v8.20.7#820007)