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

Wrong HBase root dir in ITBLL's Search Tool

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 2.1.0, 2.0.1
    • Fix Version/s: 3.0.0, 2.2.0, 2.1.1, 2.0.2
    • Component/s: integration tests
    • Labels:
      None

      Description

      When using IntegrationTestBigLinkedList's Search tools, it always fails since it tries to read WALs in a wrong HBase root dir. Turned out that when initializing IntegrationTestingUtility in IntegrationTestBigLinkedList, its super class HBaseTestingUtility will change hbase.rootdir to a local random dir. It is not wrong since HBaseTestingUtility is mostly used by Minicluster. But for IntegrationTest runs on distributed clusters, we should change it back.
      Here is the error info.

      2018-07-11 16:35:49,679 DEBUG [main] hbase.HBaseCommonTestingUtility: Setting hbase.rootdir to /home/hadoop/target/test-data/deb67611-2737-4696-abe9-32a7783df7bb
      2018-07-11 16:35:50,736 ERROR [main] util.AbstractHBaseTool: Error running command-line tool java.io.FileNotFoundException: File file:/home/hadoop/target/test-data/deb67611-2737-4696-abe9-32a7783df7bb/WALs does not exist
              at org.apache.hadoop.fs.RawLocalFileSystem.listStatus(RawLocalFileSystem.java:431)
              at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1517)
      

        Attachments

        1. HBASE-20870.branch-2.0.001.patch
          1 kB
          Allan Yang
        2. HBASE-20870.branch-2.0.002.patch
          2 kB
          Allan Yang
        3. HBASE-20870.branch-2.0.003.patch
          3 kB
          Allan Yang

          Activity

            People

            • Assignee:
              allan163 Allan Yang
              Reporter:
              allan163 Allan Yang
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: