From de64253892a26ffaa305f03c7ef17faf744a4ebf Mon Sep 17 00:00:00 2001 From: Ayush Saxena Date: Thu, 8 Aug 2019 00:37:56 +0530 Subject: [PATCH] HDFS-14608. DataNode#DataTransfer should be named. Contributed by Inigo Goiri. --- .../org/apache/hadoop/hdfs/server/datanode/DataNode.java | 5 +++++ 1 file changed, 5 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 09c99fdfec1..163d73c02e7 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 @@ -2627,6 +2627,11 @@ public class DataNode extends ReconfigurableBase IOUtils.closeSocket(sock); } } + + @Override + public String toString() { + return "DataTransfer " + b + " to " + Arrays.asList(targets); + } } /***