Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-3306

Consider removing port-guess portion of PortUtils.getRandomFreePort

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.1
    • 1.7.0
    • None
    • None

    Description

      I recently changed how SimpleMacIT and ConfigurableMacIT start the mini cluster in an attempt to mitigate ZooKeeper failing to start when the port we guessed at was already in use. In last night's run of integration tests on master, we had 22 occurrences of the warning ("Failed to start MiniAccumuloCluster, assumably due to ZooKeeper issues").

      I'm wondering if we can do anything to getRandomFreePort to make it more reliable. Would not providing a port (0) and letting it find one for itself be more stable?

      Attachments

        Issue Links

          Activity

            People

              elserj Josh Elser
              elserj Josh Elser
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m