You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Raju Balpande (Jira)" <ji...@apache.org> on 2024/04/09 11:56:00 UTC

[jira] [Commented] (HDDS-10132) TestStorageContainerManager.testScmProcessDatanodeHeartbeat fails with Java 17

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

Raju Balpande commented on HDDS-10132:
--------------------------------------

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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org