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

TestHDFSServerPorts#testBackupNodePorts doesn't pass on Windows

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.10.0, 3.2.0, 3.1.1, 2.9.2, 3.0.3
    • None
    • Windows 10

    • 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

        1. HDFS-11700.000.patch
          1 kB
          Anbang Hu

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: