HDFS-10627. Volume Scanner marks a block as "suspect" even if the exception is network-related. Contributed by Rushabh S Shah.
(cherry picked from commit 5c0bffddc0cb824a8a2751bcd0dc3e15ce081727)
This commit is contained in:
parent
69a4b0c7d2
commit
cacf83b6c3
@ -622,10 +622,10 @@ private int sendPacket(ByteBuffer pkt, int maxChunks, OutputStream out,
|
||||
String ioem = e.getMessage();
|
||||
if (!ioem.startsWith("Broken pipe") && !ioem.startsWith("Connection reset")) {
|
||||
LOG.error("BlockSender.sendChunks() exception: ", e);
|
||||
}
|
||||
datanode.getBlockScanner().markSuspectBlock(
|
||||
datanode.getBlockScanner().markSuspectBlock(
|
||||
volumeRef.getVolume().getStorageID(),
|
||||
block);
|
||||
}
|
||||
}
|
||||
throw ioeToSocketException(e);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user