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
This commit is contained in:
Jtdellaringa 2024-03-05 10:33:22 -08:00 committed by GitHub
parent dae871e3e0
commit a2d7241190
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -777,7 +777,7 @@ assert getBlockPoolId().equals(bp) :
((BlockRecoveryCommand)cmd).getRecoveringBlocks()); ((BlockRecoveryCommand)cmd).getRecoveringBlocks());
break; break;
case DatanodeProtocol.DNA_ACCESSKEYUPDATE: case DatanodeProtocol.DNA_ACCESSKEYUPDATE:
LOG.info("DatanodeCommand action: DNA_ACCESSKEYUPDATE"); LOG.info("DatanodeCommand action from active NN {}: DNA_ACCESSKEYUPDATE", nnSocketAddress);
if (dn.isBlockTokenEnabled) { if (dn.isBlockTokenEnabled) {
dn.blockPoolTokenSecretManager.addKeys( dn.blockPoolTokenSecretManager.addKeys(
getBlockPoolId(), getBlockPoolId(),