[ 
https://issues.apache.org/jira/browse/HDDS-12846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HDDS-12846:
----------------------------------
    Labels: pull-request-available  (was: )

> Log DatanodeDetails instead of DatanodeDetails.getUuidString
> ------------------------------------------------------------
>
>                 Key: HDDS-12846
>                 URL: https://issues.apache.org/jira/browse/HDDS-12846
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Attila Doroszlai
>            Assignee: Chia-Chuan Yu
>            Priority: Major
>              Labels: pull-request-available
>
> {{DatanodeDetails#toString()}} includes UUID, hostname, IP.  We should use 
> {{DatanodeDetails}} object in log messages instead of its {{getUuidString()}}.
> Example (there are many more!):
> {code:title=https://github.com/apache/ozone/blob/a95d3389e07ec690a3e0b6923dae06aa51f0f4a6/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/balancer/AbstractFindTargetGreedy.java#L166-L168}
>       logger.debug("Moving container {} from source {} to target {} will not 
> " +
>               "satisfy placement policy.", containerID, 
> source.getUuidString(),
>           target.getUuidString());
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to