GitHub user mfenes reopened a pull request:
https://github.com/apache/zookeeper/pull/355
ZOOKEEPER-2809: Unnecessary stack-trace in server when the client disâ¦
Unnecessary stack-trace in server when the client disconnects unexpectedly.
Backport from master, branch-3.5 to branch-3.4. Removes unnecessary stack
traces from the catch blocks of method doIO in NIOServerCnxn. For
EndOfStreamException stack trace is replaced with logging only the message and
also contains the removal of stack traces for exceptions CancelledKeyException
and IOException as per commit 6206b495 referenced in the ticket.
This change is necessary as there are projects which consider all stack
traces as bugs.
For CancelledKeyException and IOException developers are still able to see
stack traces at log level Debug.
This change is in sync with master and branch-3.5.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mfenes/zookeeper ZOOKEEPER-2809
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zookeeper/pull/355.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #355
----
----
---