Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-8246 Java 11/17 Support and Testing
  3. HDDS-10132

TestStorageContainerManager.testScmProcessDatanodeHeartbeat fails with Java 17

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • test

    Description

      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)
      

      The test can be run with Java 17 using command similar to (may need to tweak JAVA_HOME):

      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'
      

      Attachments

        1. image-2024-04-10-15-28-09-627.png
          245 kB
          Raju Balpande
        2. image-2024-04-10-15-28-35-386.png
          207 kB
          Raju Balpande

        Issue Links

          Activity

            People

              raju.balpande Raju Balpande
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: