From 98e2781dde4c4de826db9f7e050cb9ec205d1188 Mon Sep 17 00:00:00 2001 From: Ayush Saxena Date: Thu, 23 Sep 2021 10:44:39 +0530 Subject: [PATCH] HDFS-16063. Add toString to EditLogFileInputStream. Contributed by Dionisii Iuzhakov. --- .../hdfs/server/namenode/EditLogFileInputStream.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EditLogFileInputStream.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EditLogFileInputStream.java index 8c3c0fd933a..74efb80d683 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EditLogFileInputStream.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EditLogFileInputStream.java @@ -324,7 +324,15 @@ public class EditLogFileInputStream extends EditLogInputStream { @Override public String toString() { - return getName(); + return "EditLogFileInputStream{" + + "log=" + log.getName() + + ", firstTxId=" + firstTxId + + ", lastTxId=" + lastTxId + + ", isInProgress=" + isInProgress + + ", maxOpSize=" + maxOpSize + + ", state=" + state + + ", logVersion=" + logVersion + + '}'; } /**