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

    • Bug
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • test, wal
    • 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

            sakthi Sakthi
            sakthi Sakthi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: