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

Add/Modify test case to check custom hbase.wal.dir outside hdfs filesystem

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: test, wal
    • Labels:
      None

      Description

      The current setup in TestWALFactory tries to create custom WAL directory outside hdfs but ends up creating a custom WAL directory inside hdfs. In TestWALFactory.java:

      public static void setUpBeforeClass() throws Exception {
          CommonFSUtils.setWALRootDir(TEST_UTIL.getConfiguration(), new Path("file:///tmp/wal")); // A local filesystem WAL is attempted
      ...
          hbaseDir = TEST_UTIL.createRootDir();
          hbaseWALDir = TEST_UTIL.createWALRootDir(); // But a directory inside hdfs is created here using HBaseTestingUtility#getNewDataTestDirOnTestFS
      }
      

      The change was made in HBASE-20723

        Attachments

        1. hbase-20984.master.003.patch
          6 kB
          Sakthi
        2. hbase-20984.master.002.patch
          6 kB
          Sakthi
        3. hbase-20984.master.001.patch
          5 kB
          Sakthi

          Activity

            People

            • Assignee:
              jatsakthi Sakthi
              Reporter:
              jatsakthi Sakthi
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: