HADOOP-12052 IPC client downgrades all exception types to IOE, breaks callers trying to use them. (Brahma Reddy Battula via stevel)
This commit is contained in:
parent
8c643e3bf9
commit
c3c2b4d318
|
@ -350,6 +350,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
HADOOP-11924. Tolerate JDK-8047340-related exceptions in
|
HADOOP-11924. Tolerate JDK-8047340-related exceptions in
|
||||||
Shell#isSetSidAvailable preventing class init. (Tsuyoshi Ozawa via gera)
|
Shell#isSetSidAvailable preventing class init. (Tsuyoshi Ozawa via gera)
|
||||||
|
|
||||||
|
HADOOP-12052 IPC client downgrades all exception types to IOE, breaks
|
||||||
|
callers trying to use them. (Brahma Reddy Battula via stevel)
|
||||||
|
|
||||||
Release 2.7.1 - UNRELEASED
|
Release 2.7.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -1484,7 +1484,13 @@ public class Client {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (ExecutionException e) {
|
} catch (ExecutionException e) {
|
||||||
throw new IOException(e);
|
Throwable cause = e.getCause();
|
||||||
|
// the underlying exception should normally be IOException
|
||||||
|
if (cause instanceof IOException) {
|
||||||
|
throw (IOException) cause;
|
||||||
|
} else {
|
||||||
|
throw new IOException(cause);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (connection.addCall(call)) {
|
if (connection.addCall(call)) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue