HDFS-15074. DataNode.DataTransfer thread should catch all the expception and log it. Contributed by hemanthboyina.

This commit is contained in:
Surendra Singh Lilhore 2019-12-29 11:15:54 +05:30
parent dc32f583af
commit ee51eadda0
1 changed files with 2 additions and 0 deletions

View File

@ -2624,6 +2624,8 @@ public void run() {
handleBadBlock(b, ie, false);
LOG.warn("{}:Failed to transfer {} to {} got",
bpReg, b, targets[0], ie);
} catch (Throwable t) {
LOG.error("Failed to transfer block " + b, t);
} finally {
decrementXmitsInProgress();
IOUtils.closeStream(blockSender);