[ 
https://issues.apache.org/jira/browse/HDDS-10132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17835358#comment-17835358
 ] 

Raju Balpande edited comment on HDDS-10132 at 4/9/24 11:57 AM:
---------------------------------------------------------------

I am able to reproduced this. I see the problem is due to the hostname which is 
considered as 127.0.0.1 in case of Java17 whereas for Java8 it is 192.168.1.2,
Due to which when it is trying to resolve the rackId in 
'StaticMapping.resolve()' it is not getting value from nameToRackMap where it 
contains value for '192.168.1.2'. Hence the default rack value is assigned.

CachedDNSToSwitchMapping.resolve is playing important role here.

Looking more into it.


was (Author: JIRAUSER296391):
I am able to reproduced this. I see the problem is due to the hostname which is 
considered as 127.0.0.1 in case of Java17 whereas for Java8 it is 192.168.1.2,
Due to which when it is trying to resolve the rackId in 
'StaticMapping.resolve()' it is not getting value from nameToRackMap where it 
contains value for '192.168.1.2'. Hence the default rack value is assigned.

Looking more into it.

> TestStorageContainerManager.testScmProcessDatanodeHeartbeat fails with Java 17
> ------------------------------------------------------------------------------
>
>                 Key: HDDS-10132
>                 URL: https://issues.apache.org/jira/browse/HDDS-10132
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: test
>            Reporter: Attila Doroszlai
>            Assignee: Raju Balpande
>            Priority: Major
>
> {code:title=TestStorageContainerManager.testScmProcessDatanodeHeartbeat}
> AssertionFailedError: expected: </rack1> but was: </default-rack>
>   ...
>   at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
>   at 
> org.apache.hadoop.ozone.scm.TestStorageContainerManager.testScmProcessDatanodeHeartbeat(TestStorageContainerManager.java:830)
> {code}
> The test can be run with Java 17 using command similar to (may need to tweak 
> JAVA_HOME):
> {code}
> JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 \
>   ./hadoop-ozone/dev-support/checks/junit.sh -DexcludedGroups='unhealthy' \
>   -am -pl :ozone-integration-test 
> -Dtest='TestStorageContainerManager#testScmProcessDatanodeHeartbeat'
> {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