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:
parent
4c73be135c
commit
5c0bffddc0
|
@ -622,11 +622,11 @@ class BlockSender implements java.io.Closeable {
|
|||
String ioem = e.getMessage();
|
||||
if (!ioem.startsWith("Broken pipe") && !ioem.startsWith("Connection reset")) {
|
||||
LOG.error("BlockSender.sendChunks() exception: ", e);
|
||||
}
|
||||
datanode.getBlockScanner().markSuspectBlock(
|
||||
volumeRef.getVolume().getStorageID(),
|
||||
block);
|
||||
}
|
||||
}
|
||||
throw ioeToSocketException(e);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue