HDFS-15403. NPE in FileIoProvider#transferToSocketFully. Contributed by hemanthboyina.
This commit is contained in:
parent
719b53a79d
commit
f41a144077
@ -280,7 +280,12 @@ public void transferToSocketFully(
|
||||
profilingEventHook.afterFileIo(volume, TRANSFER, begin, count);
|
||||
} catch (Exception e) {
|
||||
String em = e.getMessage();
|
||||
if (!em.startsWith("Broken pipe") && !em.startsWith("Connection reset")) {
|
||||
if (em != null) {
|
||||
if (!em.startsWith("Broken pipe")
|
||||
&& !em.startsWith("Connection reset")) {
|
||||
onFailure(volume, begin);
|
||||
}
|
||||
} else {
|
||||
onFailure(volume, begin);
|
||||
}
|
||||
throw e;
|
||||
|
Loading…
Reference in New Issue
Block a user