Details
Description
} catch (InterruptedException e) { Thread.currentThread().interrupt(); LOG.warn("interrupted waiting to send rpc request to server", e); throw new IOException(e); }
I'm working on a project that uses an ExecutorService to launch a bunch of threads. Each thread spins up an HDFS client connection. At any point in time, the program can terminate and call ExecutorService#shutdownNow() to forcibly close vis-à-vis Thread#interrupt(). At that point, I get a cascade of logging from the above code and there's no easy to way to turn it off.
"Log and throw" is generally frowned upon, just throw the Exception and move on.
Attachments
Attachments
Issue Links
- relates to
-
HDFS-13150 [Edit Tail Fast Path] Allow SbNN to tail in-progress edits from JN via RPC
- Resolved
-
HDFS-13888 RequestHedgingProxyProvider shows InterruptedException
- Resolved
-
HDFS-14395 Remove WARN Logging From Interrupts in DataStreamer
- Resolved