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

Race condition in starting proxy for ITs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.3, 1.8.0
    • proxy, test
    • None

    Description

      Had a test failure last night in KerberosProxyIT. It seems the following happened

      1. Bind a server socket using '0' (pull a free port from the ephemeral range)
      2. Determine the actual port which was bound
      3. Close the socket
      4. Another process grabbed the port we had bound
      5. Attempt to start the proxy on that port

      The proxy failed to start because the port we provided was already taken. This stems from a problem that we can't have the Proxy bind to any free port and figure out where it started (what port it actually bound); maybe we could provide configuration to advertise this in ZooKeeper (will file another issue). For this test, if we fail to connect to the proxy and the proxy is dead, we can try to re-start the proxy with a different port. Given how rare this scenario is, hopefully retrying it takes the chance it happens again to effectively 0%.

      Attachments

        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 - 0.5h
                0.5h