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

Ability to run mini cluster using pre-determined available random ports

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-1, 1.4.12, 2.2.3
    • 3.0.0-alpha-1, 2.3.0, 1.6.0
    • test
    • None

    Description

      As noted in the code reviews for HBASE-18095, we need the ability to run the mini-cluster using a pre-determined set of random (and available) port numbers. When I say pre-determined, I mean the test knows these ports even before starting the mini cluster.

      In short, the workflow is something like,

      List<Ports> ports = getRandomAvailablePorts();
      startMiniCluster(conf, ports);
      

      The reason we need this is that certain configs introduced in HBASE-18095 depend on the ports on which the master is expected to serve the RPCs. While that is known for regular deployments (like 16000 for master etc), it is totally random in the mini cluster tests. So we need to know them before hand for templating out the configs.

      Attachments

        Issue Links

          Activity

            People

              bharathv Bharath Vissapragada
              bharathv Bharath Vissapragada
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: