Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-11700

TestHDFSServerPorts#testBackupNodePorts doesn't pass on Windows

    Details

    • Type: Test
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10.0, 3.2.0, 3.1.1, 2.9.2, 3.0.3
    • Component/s: None
    • Labels:
    • Environment:

      Windows 10

    • Hadoop Flags:
      Reviewed

      Description

      In TestHDFSServerPorts.testBackupNodePorts, there are two attempts at starting backup node.

      Attempt 1:
      1) It binds namenode backup address with 0:

      backup_config.set(DFSConfigKeys.DFS_NAMENODE_BACKUP_ADDRESS_KEY, THIS_HOST);

      2) It sets namenode backup address with an available port X.
      3) It fails rightfully due to using the same http address as active namenode.

      Attempt 2:
      1) It tries to reuse port X as namenode backup address.
      2) It fails to bind to X because Windows does not release port X properly after Attempt 1 fails.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                huanbang1993 Anbang Hu
                Reporter:
                huanbang1993 Anbang Hu
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: