HDFS-14836. FileIoProvider should not increase FileIoErrors metric in datanode volume metric. Contributed by Aiphago.
Reviewed-by: He Xiaoqiao <hexiaoqiao@apache.org> (cherry picked from commit 5dd859a8a0d038ff04acbb96741a215d6a0e8c29) (cherry picked from commit b906f53b0d0e330d65a36295bfb8fe66d0a3995c)
This commit is contained in:
parent
eb5c4ce432
commit
0fcbeed49a
@ -281,7 +281,10 @@ public void transferToSocketFully(
|
|||||||
waitTime, transferTime);
|
waitTime, transferTime);
|
||||||
profilingEventHook.afterFileIo(volume, TRANSFER, begin, count);
|
profilingEventHook.afterFileIo(volume, TRANSFER, begin, count);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
onFailure(volume, begin);
|
String em = e.getMessage();
|
||||||
|
if (!em.startsWith("Broken pipe") && !em.startsWith("Connection reset")) {
|
||||||
|
onFailure(volume, begin);
|
||||||
|
}
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user