HADOOP-9894. Race condition in Shell leads to logged error stream handling exceptions (Arpit Agarwal)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1518420 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
56c1b9de0c
commit
4ba7a5e564
|
@ -429,6 +429,9 @@ Release 2.1.1-beta - UNRELEASED
|
|||
HADOOP-9887. globStatus does not correctly handle paths starting with a drive
|
||||
spec on Windows. (Chuan Liu via cnauroth)
|
||||
|
||||
HADOOP-9894. Race condition in Shell leads to logged error stream handling
|
||||
exceptions (Arpit Agarwal)
|
||||
|
||||
Release 2.1.0-beta - 2013-08-22
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -515,8 +515,13 @@ abstract public class Shell {
|
|||
} catch (IOException ioe) {
|
||||
LOG.warn("Error while closing the input stream", ioe);
|
||||
}
|
||||
if (!completed.get()) {
|
||||
errThread.interrupt();
|
||||
try {
|
||||
if (!completed.get()) {
|
||||
errThread.interrupt();
|
||||
errThread.join();
|
||||
}
|
||||
} catch (InterruptedException ie) {
|
||||
LOG.warn("Interrupted while joining errThread");
|
||||
}
|
||||
try {
|
||||
errReader.close();
|
||||
|
|
Loading…
Reference in New Issue