You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Mate Szalay-Beko (Jira)" <ji...@apache.org> on 2022/06/01 15:37:00 UTC

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

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-4551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mate Szalay-Beko resolved ZOOKEEPER-4551.
-----------------------------------------
    Fix Version/s: 3.7.2
                   3.9.0
                   3.6.4
                   3.8.1
       Resolution: Fixed

Issue resolved by pull request 1889
[https://github.com/apache/zookeeper/pull/1889]

> 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
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 3.7.2, 3.9.0, 3.6.4, 3.8.1
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> 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)