HDFS-14836. FileIoProvider should not increase FileIoErrors metric in datanode volume metric. Contributed by Aiphago.
Reviewed-by: He Xiaoqiao <hexiaoqiao@apache.org>
This commit is contained in:
parent
8d9e9ec3e5
commit
5dd859a8a0
|
@ -279,7 +279,10 @@ public class FileIoProvider {
|
|||
waitTime, transferTime);
|
||||
profilingEventHook.afterFileIo(volume, TRANSFER, begin, count);
|
||||
} catch (Exception e) {
|
||||
String em = e.getMessage();
|
||||
if (!em.startsWith("Broken pipe") && !em.startsWith("Connection reset")) {
|
||||
onFailure(volume, begin);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue