nandakumar131 opened a new pull request, #7843:
URL: https://github.com/apache/ozone/pull/7843

   ## What changes were proposed in this pull request?
   Change log level in `SCMNodeManager#getNodesByAddress` to debug.
   
   
   `SCMNodeManager#getNodesByAddress` is called from 
`BlockProtocolServer#allocateBlock` and `BlockProtocolServer#sortDatanodes`, in 
both the cases the client could be running on a node that's not a datanode. 
Because of this the SCM log file is flooded with `Cannot find node for address` 
messages.
   ```
   2025-01-14 13:36:23,602 WARN [IPC Server handler 79 on 
9863]-org.apache.hadoop.hdds.scm.node.SCMNodeManager: Cannot find node for 
address 172.xx.x.151
   2025-01-14 13:36:23,602 WARN [IPC Server handler 78 on 
9863]-org.apache.hadoop.hdds.scm.node.SCMNodeManager: Cannot find node for 
address 172.xx.x.152
   2025-01-14 13:36:23,614 WARN [IPC Server handler 18 on 
9863]-org.apache.hadoop.hdds.scm.node.SCMNodeManager: Cannot find node for 
address 172.xx.x.152
   2025-01-14 13:36:23,614 WARN [IPC Server handler 32 on 
9863]-org.apache.hadoop.hdds.scm.node.SCMNodeManager: Cannot find node for 
address 172.xx.x.151
   2025-01-14 13:36:23,614 WARN [IPC Server handler 18 on 
9863]-org.apache.hadoop.hdds.scm.node.SCMNodeManager: Cannot find node for 
address 172.xx.x.152
   2025-01-14 13:36:23,614 WARN [IPC Server handler 78 on 
9863]-org.apache.hadoop.hdds.scm.node.SCMNodeManager: Cannot find node for 
address 172.xx.x.115
   2025-01-14 13:36:23,614 WARN [IPC Server handler 42 on 
9863]-org.apache.hadoop.hdds.scm.node.SCMNodeManager: Cannot find node for 
address 172.xx.x.140
   2025-01-14 13:36:23,614 WARN [IPC Server handler 67 on 
9863]-org.apache.hadoop.hdds.scm.node.SCMNodeManager: Cannot find node for 
address 172.xx.x.152
   2025-01-14 13:36:23,614 WARN [IPC Server handler 71 on 
9863]-org.apache.hadoop.hdds.scm.node.SCMNodeManager: Cannot find node for 
address 172.xx.x.117
   2025-01-14 13:36:23,614 WARN [IPC Server handler 34 on 
9863]-org.apache.hadoop.hdds.scm.node.SCMNodeManager: Cannot find node for 
address 172.xx.x.152
   2025-01-14 13:36:23,614 WARN [IPC Server handler 12 on 
9863]-org.apache.hadoop.hdds.scm.node.SCMNodeManager: Cannot find node for 
address 172.xx.x.151
   ...
   ```
   
   We don't have to log a WARN message for this case, we can change this is 
DEBUG message. 
   
   This will reduce the log file size and make it easier to debug other issues.
   
   ## What is the link to the Apache JIRA
   HDDS-12292
   
   ## How was this patch tested?
   CI: https://github.com/nandakumar131/ozone/actions/runs/13227847369
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to