Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pool: provide more information when handle is double-closed
Motivation: A handle is expected to be closed exactly once: a second close triggers a IllegalStateException. Such an occurance is logged with a stack-trace. However, that stack-trace is only helpful if the second attempt to close the handle is in error. If the handle was "prematurely" closed then the logged stack-trace does not provide sufficient information to understand what went wrong. For more specific motivation, see #6171. Modification: Capture the stack-trace of the successful close using an exception. This is then used to embellish any subsequent the ISE. Result: The pool now provides more information for bugs reported as `java.lang.IllegalStateException: Handle is closed`. Target: master Requires-notes: yes Requires-book: no Request: 7.2 Request: 7.1 Request: 7.0 Request: 6.2 Patch: https://rb.dcache.org/r/13232/ Acked-by: Tigran Mkrtchyan Acked-by: Lea Morschel
- Loading branch information