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

[WAL] Merged region should get its WAL according to WALProvider.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.10, 1.3.5
    • Fix Version/s: 1.5.0, 1.3.6, 1.4.11
    • Component/s: wal
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      This one is similar to HBASE-22774.

      Merging regions works fine by default because all regions shared one wal. But if multiwal is enabled, merged region should get its wal according to wal grouping strategy.

      HRegion.java
        HRegion createMergedRegionFromMerges(final HRegionInfo mergedRegionInfo,
            final HRegion region_b) throws IOException {
          HRegion r = HRegion.newHRegion(this.fs.getTableDir(),
              this.getWAL(), // Here should use rsService.getWAL(mergedRegionInfo), then wal provider and strategy if there is will take effect.
              fs.getFileSystem(), this.getBaseConf(), mergedRegionInfo,
              this.getTableDesc(), this.rsServices);
          ...
      
          return r;
        }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                reidchan Reid Chan
                Reporter:
                reidchan Reid Chan
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: