dlmarion commented on code in PR #2622:
URL: https://github.com/apache/accumulo/pull/2622#discussion_r857903733
##########
core/src/main/java/org/apache/accumulo/core/rpc/TTimeoutTransport.java:
##########
@@ -87,6 +84,12 @@ TTransport createInternal(SocketAddress addr, long
timeoutMillis) throws TTransp
socket = openSocket(addr, (int) timeoutMillis);
} catch (IOException e) {
// openSocket handles closing the Socket on error
+ if (e instanceof AsynchronousCloseException) {
+ if (Thread.currentThread().isInterrupted()) {
+ Thread.currentThread().interrupt();
+ throw new UncheckedIOException(e);
+ }
+ }
Review Comment:
@ctubbsii and I talked about this issue after I put up my most recent
comment. Apologies for not updating the PR. He suggested a minor tweak to make
the fix more targeted to the original issue.
```suggestion
if (e instanceof ClosedByInterruptException) {
Thread.currentThread().interrupt();
throw new UncheckedIOException(e);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]