HDFS-16802.Print options when accessing ClientProtocol#rename2(). (#5013)

Reviewed-by: Tao Li <tomscut@apache.org>
Reviewed-by: Wei-Chiu Chuang <weichiu@apache.org>
Signed-off-by: Zander Xu <zanderxu@apache.org>
This commit is contained in:
jianghuazhu 2022-10-28 16:31:20 +08:00 committed by GitHub
parent 8396caa484
commit 88f7f5bc01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,8 +248,8 @@ static RenameResult renameToInt(
String src = srcArg; String src = srcArg;
String dst = dstArg; String dst = dstArg;
if (NameNode.stateChangeLog.isDebugEnabled()) { if (NameNode.stateChangeLog.isDebugEnabled()) {
NameNode.stateChangeLog.debug("DIR* NameSystem.renameTo: with options -" + NameNode.stateChangeLog.debug("DIR* NameSystem.renameTo: with options={} {} to {}",
" " + src + " to " + dst); Arrays.toString(options), src, dst);
} }
BlocksMapUpdateInfo collectedBlocks = new BlocksMapUpdateInfo(); BlocksMapUpdateInfo collectedBlocks = new BlocksMapUpdateInfo();