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

BindException in integration tests with Java 17

    XMLWordPrintableJSON

Details

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

    Description

      Ports release seems to be different with newer Java versions, so BindException is seen in some integration tests:

      TestSecureOzoneCluster
      	at org.apache.hadoop.ozone.om.OzoneManager.startRpcServer(OzoneManager.java:1273)
      	at org.apache.hadoop.ozone.om.OzoneManager.getRpcServer(OzoneManager.java:1247)
      	at org.apache.hadoop.ozone.om.OzoneManager.<init>(OzoneManager.java:702)
      	at org.apache.hadoop.ozone.om.OzoneManager.createOm(OzoneManager.java:768)
      	at org.apache.hadoop.ozone.TestSecureOzoneCluster.testSecureOmReInit(TestSecureOzoneCluster.java:887)
      
      TestStorageContainerManager.testNonRatisToRatis
      	at org.apache.hadoop.hdds.scm.server.StorageContainerManager.startRpcServer(StorageContainerManager.java:1126)
      	at org.apache.hadoop.hdds.scm.server.SCMDatanodeProtocolServer.<init>(SCMDatanodeProtocolServer.java:173)
      	at org.apache.hadoop.hdds.scm.server.StorageContainerManager.<init>(StorageContainerManager.java:442)
      	at org.apache.hadoop.hdds.scm.server.StorageContainerManager.createSCM(StorageContainerManager.java:617)
      	at org.apache.hadoop.hdds.scm.HddsTestUtils.getScmSimple(HddsTestUtils.java:604)
      	at org.apache.hadoop.ozone.MiniOzoneClusterImpl.restartStorageContainerManager(MiniOzoneClusterImpl.java:366)
      	at org.apache.hadoop.ozone.scm.TestStorageContainerManager.testNonRatisToRatis(TestStorageContainerManager.java:1099)
      

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: