Reid Chan created HBASE-22861:

             Summary: [WAL] Merged region should get its WAL according to 
                 Key: HBASE-22861
             Project: HBase
          Issue Type: Bug
            Reporter: Reid Chan

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 strategy.

  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;

This message was sent by Atlassian JIRA

Reply via email to