From a2d72411905e51038824593a069e46345d9a5e90 Mon Sep 17 00:00:00 2001 From: Jtdellaringa <78453490+Jtdellaringa@users.noreply.github.com> Date: Tue, 5 Mar 2024 10:33:22 -0800 Subject: [PATCH] HDFS-17404. Add NN Socket Address to log when processing command from active NN (#6598) * Add nnSocketAddress to log when processing command from active nn --- .../org/apache/hadoop/hdfs/server/datanode/BPOfferService.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/datanode/BPOfferService.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPOfferService.java index b228fb2d57..7d5d05bac5 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPOfferService.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPOfferService.java @@ -777,7 +777,7 @@ assert getBlockPoolId().equals(bp) : ((BlockRecoveryCommand)cmd).getRecoveringBlocks()); break; case DatanodeProtocol.DNA_ACCESSKEYUPDATE: - LOG.info("DatanodeCommand action: DNA_ACCESSKEYUPDATE"); + LOG.info("DatanodeCommand action from active NN {}: DNA_ACCESSKEYUPDATE", nnSocketAddress); if (dn.isBlockTokenEnabled) { dn.blockPoolTokenSecretManager.addKeys( getBlockPoolId(),