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 ad11b25df2
commit 5d9cbca31e
1 changed files with 2 additions and 0 deletions

View File

@ -2594,6 +2594,8 @@ public class DataNode extends ReconfigurableBase
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);