HDFS-15403. NPE in FileIoProvider#transferToSocketFully. Contributed by hemanthboyina.
(cherry picked from commit f41a144077
)
This commit is contained in:
parent
b669735124
commit
c2f908482f
|
@ -282,7 +282,12 @@ public class FileIoProvider {
|
|||
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