Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12656

MiniKdc throws "address in use" BindException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Jenkins

    • Hadoop Flags:
      Reviewed

      Description

      Another address in use error.

      I saw the test TestKerberosAuthenticationHandler.testNameRules failed due to porting binding error.
      https://builds.apache.org/job/Hadoop-common-trunk-Java8/827/testReport/org.apache.hadoop.security.authentication.server/TestKerberosAuthenticationHandler/testNameRules/

      Looking at MiniKdc implementation, if port is 0, the constructor use ServerSocket to find an unused port, assign the port number to the member variable port and close the ServerSocket object; later, in initKDCServer(), instantiate a TcpTransport object and bind at that port.

      It appears that the port may be used in between, and then throw the exception.

        Attachments

        1. HADOOP-12656.001.patch
          3 kB
          Wei-Chiu Chuang

          Issue Links

            Activity

              People

              • Assignee:
                weichiu Wei-Chiu Chuang
                Reporter:
                weichiu Wei-Chiu Chuang
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: