HDFS-10627. Volume Scanner marks a block as "suspect" even if the exception is network-related. Contributed by Rushabh S Shah.

This commit is contained in:
Kihwal Lee 2016-10-20 10:48:35 -05:00
parent 4c73be135c
commit 5c0bffddc0
1 changed files with 2 additions and 2 deletions

View File

@ -622,10 +622,10 @@ class BlockSender implements java.io.Closeable {
String ioem = e.getMessage(); String ioem = e.getMessage();
if (!ioem.startsWith("Broken pipe") && !ioem.startsWith("Connection reset")) { if (!ioem.startsWith("Broken pipe") && !ioem.startsWith("Connection reset")) {
LOG.error("BlockSender.sendChunks() exception: ", e); LOG.error("BlockSender.sendChunks() exception: ", e);
} datanode.getBlockScanner().markSuspectBlock(
datanode.getBlockScanner().markSuspectBlock(
volumeRef.getVolume().getStorageID(), volumeRef.getVolume().getStorageID(),
block); block);
}
} }
throw ioeToSocketException(e); throw ioeToSocketException(e);
} }