HDFS-10627. Volume Scanner marks a block as "suspect" even if the exception is network-related. Contributed by Rushabh S Shah.
Updated CHANGES.txt
(cherry picked from commit 5c0bffddc0
)
This commit is contained in:
parent
1e5c40b5b4
commit
6ae7b9f800
|
@ -172,6 +172,9 @@ Release 2.7.4 - UNRELEASED
|
|||
HDFS-9444. Add utility to find set of available ephemeral ports to
|
||||
ServerSocketUtil. (Masatake Iwasaki via Brahma Reddy Battula)
|
||||
|
||||
HDFS-10627. Volume Scanner marks a block as "suspect" even if
|
||||
the exception is network-related. (Rushabh S Shah via kihwal)
|
||||
|
||||
Release 2.7.3 - 2016-08-25
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -613,10 +613,10 @@ 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(
|
||||
datanode.getBlockScanner().markSuspectBlock(
|
||||
volumeRef.getVolume().getStorageID(),
|
||||
block);
|
||||
}
|
||||
}
|
||||
throw ioeToSocketException(e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue