raju-balpande opened a new pull request, #6516: URL: https://github.com/apache/ozone/pull/6516
## What changes were proposed in this pull request? TestStorageContainerManager.testScmProcessDatanodeHeartbeat fails with Java 17 I see JDK8 is considering the assigned IP for 'Server.getRemoteIp()' and 'NetUtils.normalizeHostName()' which are part of Hadoop API. Whereas in case of JDK11, 'Server.getRemoteIp()' is resolving it to local IP 127.0.0.1, but NetUtils.normalizeHostName() still calculates the assigned IP. So this was a mismatch and hence to resolve this issue, I added additional entry for 127.0.0.1 from Test class to map nameToRackMap which is part of 'StaticMapping.resolve()'. This is working for both the JDK versions now. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-10132 ## How was this patch tested? Switched to JDK11 and JDK8 for testing both the scenarios. -- 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]
