Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-19963

TestFSHDFSUtils assumes wrong default port for Hadoop 3.0.1+

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • test
    • None

    Description

      We try to accommodate HDFS changing ports when testing if it is the same FS in our tests:
      https://github.com/apache/hbase/blob/master/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestFSHDFSUtils.java#L156-L162

          if (isHadoop3) {
            // Hadoop 3.0.0 alpha1+ change default nn port to 9820. See HDFS-9427
            testIsSameHdfs(9820);
          } else {
            // pre hadoop 3.0.0 defaults to port 8020
            testIsSameHdfs(8020);
          }
      

      But in Hadoop 3.0.1, they decided to go back to the old port - see HDFS-12990.

      So our tests will fail against the snapshot and against future releases.

      Attachments

        1. HBASE-19963.master.001.patch
          2 kB
          Wei-Chiu Chuang
        2. HBASE-19963.master.002.patch
          2 kB
          Wei-Chiu Chuang

        Issue Links

          Activity

            People

              weichiu Wei-Chiu Chuang
              mdrob Mike Drob
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: