HDFS-15074. DataNode.DataTransfer thread should catch all the expception and log it. Contributed by hemanthboyina.
This commit is contained in:
parent
dc32f583af
commit
ee51eadda0
|
@ -2624,6 +2624,8 @@ public class DataNode extends ReconfigurableBase
|
||||||
handleBadBlock(b, ie, false);
|
handleBadBlock(b, ie, false);
|
||||||
LOG.warn("{}:Failed to transfer {} to {} got",
|
LOG.warn("{}:Failed to transfer {} to {} got",
|
||||||
bpReg, b, targets[0], ie);
|
bpReg, b, targets[0], ie);
|
||||||
|
} catch (Throwable t) {
|
||||||
|
LOG.error("Failed to transfer block " + b, t);
|
||||||
} finally {
|
} finally {
|
||||||
decrementXmitsInProgress();
|
decrementXmitsInProgress();
|
||||||
IOUtils.closeStream(blockSender);
|
IOUtils.closeStream(blockSender);
|
||||||
|
|
Loading…
Reference in New Issue