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

WALProcedureStore uses wrong FileSystem if wal.dir is not under rootdir

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.2.0
    • None
    • None
    • Reviewed

    Description

      In WALProcedureStore ctor , the fs field is initialized this way:

          this.fs = walDir.getFileSystem(conf);
      

      However, when wal.dir is not under rootdir, the above would return wrong FileSystem.
      In the modified TestMasterProcedureEvents, without fix, the master wouldn't initialize.

      Attachments

        1. 21466.v2.txt
          5 kB
          Ted Yu
        2. 21466.v3.txt
          5 kB
          Ted Yu
        3. 21466.v3.txt
          5 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: