From 7a87add4ea4c317aa9377d1fc8e43fb5e7418a46 Mon Sep 17 00:00:00 2001 From: Yiqun Lin Date: Thu, 24 May 2018 10:57:35 +0800 Subject: [PATCH] HDFS-13598. Reduce unnecessary byte-to-string transform operation in INodesInPath#toString. Contributed by Gabor Bota. --- .../org/apache/hadoop/hdfs/server/namenode/INodesInPath.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodesInPath.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodesInPath.java index 8235bf07d5..50ead610c6 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodesInPath.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodesInPath.java @@ -484,7 +484,7 @@ private String toString(boolean vaildateObject) { } final StringBuilder b = new StringBuilder(getClass().getSimpleName()) - .append(": path = ").append(DFSUtil.byteArray2PathString(path)) + .append(": path = ").append(getPath()) .append("\n inodes = "); if (inodes == null) { b.append("null");