From 88f7f5bc015d7ba48556d4d9625faccd7622836a Mon Sep 17 00:00:00 2001 From: jianghuazhu <740087514@qq.com> Date: Fri, 28 Oct 2022 16:31:20 +0800 Subject: [PATCH] HDFS-16802.Print options when accessing ClientProtocol#rename2(). (#5013) Reviewed-by: Tao Li Reviewed-by: Wei-Chiu Chuang Signed-off-by: Zander Xu --- .../org/apache/hadoop/hdfs/server/namenode/FSDirRenameOp.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirRenameOp.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirRenameOp.java index 8f7db1a06e..64bc46d901 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirRenameOp.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirRenameOp.java @@ -248,8 +248,8 @@ static RenameResult renameToInt( String src = srcArg; String dst = dstArg; if (NameNode.stateChangeLog.isDebugEnabled()) { - NameNode.stateChangeLog.debug("DIR* NameSystem.renameTo: with options -" + - " " + src + " to " + dst); + NameNode.stateChangeLog.debug("DIR* NameSystem.renameTo: with options={} {} to {}", + Arrays.toString(options), src, dst); } BlocksMapUpdateInfo collectedBlocks = new BlocksMapUpdateInfo();