@InterfaceAudience.Private public interface RegionMergeCoordination
Modifier and Type | Interface and Description |
---|---|
static interface |
RegionMergeCoordination.RegionMergeDetails
Dummy interface for region merge transaction details.
|
RegionMergeCoordination.RegionMergeDetails getDefaultDetails()
void startRegionMergeTransaction(HRegionInfo region, ServerName serverName, HRegionInfo a, HRegionInfo b) throws IOException
region
- region to be created as offlineserverName
- server event originates fromIOException
void waitForRegionMergeTransaction(RegionServerServices services, HRegionInfo mergedRegionInfo, HRegion region_a, HRegion region_b, RegionMergeCoordination.RegionMergeDetails details) throws IOException
IOException
void confirmRegionMergeTransaction(HRegionInfo merged, HRegionInfo a, HRegionInfo b, ServerName serverName, RegionMergeCoordination.RegionMergeDetails rmd) throws IOException
merged
- regiona
- merging region Ab
- merging region BserverName
- server event originates fromrmd
- region merge detailsIOException
- If thrown, transaction failed.void processRegionMergeRequest(HRegionInfo merged, HRegionInfo a, HRegionInfo b, ServerName serverName, RegionMergeCoordination.RegionMergeDetails rmd) throws IOException
merged
- regiona
- merging region Ab
- merging region BserverName
- server event originates fromrmd
- region merge detailsIOException
void completeRegionMergeTransaction(RegionServerServices services, HRegionInfo merged, HRegion region_a, HRegion region_b, RegionMergeCoordination.RegionMergeDetails rmd, HRegion mergedRegion) throws IOException
services
- Used to online/offline regions.merged
- regionregion_a
- merging region Aregion_b
- merging region Brmd
- region merge detailsmergedRegion
- IOException
- If thrown, transaction failed. Call
RegionMergeTransaction.rollback(
Server, RegionServerServices)
void clean(HRegionInfo merged)
merged
- region to be rolled backCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.