ptlrs opened a new pull request, #7495: URL: https://github.com/apache/ozone/pull/7495
Please describe your PR in detail: `DatanodeDetails` is persisted by `ContainerUtils` and `DatanodeIdYaml` classes. The IP address in `DatanodeDetails` is also persisted. However, the IP address could have changed when reading back the persisted file. As part of this change: - Obtain the hostname's IP address and compare it with the persisted IP address - If the IP addresses are different, prefer the resolved IP address as it is the latest - Warn about the possible discrepancy - Added a test ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-1480 ## How was this patch tested? CI: https://github.com/ptlrs/ozone/actions/runs/12044106534 -- 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]
