You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by su...@apache.org on 2019/12/29 05:52:36 UTC
[hadoop] branch branch-3.2 updated: HDFS-15074.
DataNode.DataTransfer thread should catch all the expception and log it.
Contributed by hemanthboyina.
This is an automated email from the ASF dual-hosted git repository.
surendralilhore pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new 5d9cbca HDFS-15074. DataNode.DataTransfer thread should catch all the expception and log it. Contributed by hemanthboyina.
5d9cbca is described below
commit 5d9cbca31e056e3d274b7be5c8d855e910c6d343
Author: Surendra Singh Lilhore <su...@apache.org>
AuthorDate: Sun Dec 29 11:15:54 2019 +0530
HDFS-15074. DataNode.DataTransfer thread should catch all the expception and log it. Contributed by hemanthboyina.
---
.../src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java
index 0344c1a..7bb72df 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java
@@ -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);
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org