Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-25910

Fix TestClusterPortAssignment.testClusterPortAssignment test and re-enable it.

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      This test assigned with random unused ports for master and region server ports and start a cluster, however it can fail as the previously unsigned port might be taken by other application at the moment when cluster start to bind the ports.

      Server has an option to allow auto assign an port if the port is unavailable. This option needs to be disabled in this test in order to test explicit port assignment.

      The exception for the failure of starting server needs to change to IOException and there is a need to set a retry count instead of infinite retry.

      Related ticket: https://issues.apache.org/jira/browse/HBASE-24342

      Attachments

        Issue Links

          Activity

            People

              vli02 Victor Li
              vli02 Victor Li
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified