@InterfaceAudience.Private public interface OpenRegionCoordination
Modifier and Type | Interface and Description |
---|---|
static interface |
OpenRegionCoordination.OpenRegionDetails
Interface for region opening tasks.
|
Modifier and Type | Method and Description |
---|---|
boolean |
commitOpenOnMasterSide(AssignmentManager assignmentManager,
HRegionInfo regionInfo,
OpenRegionCoordination.OpenRegionDetails ord)
Commits opening operation on HM side (steps required for "commit"
are determined by coordination implementation).
|
OpenRegionCoordination.OpenRegionDetails |
getDetailsForNonCoordinatedOpening()
Get details object with params for case when we're opening on
regionserver side with all "default" properties.
|
OpenRegionCoordination.OpenRegionDetails |
parseFromProtoRequest(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.OpenRegionRequest.RegionOpenInfo regionOpenInfo)
Construct OpenRegionDetails instance from part of protobuf request.
|
boolean |
tickleOpening(OpenRegionCoordination.OpenRegionDetails ord,
HRegionInfo regionInfo,
RegionServerServices rsServices,
String context)
Heartbeats to prevent timeouts.
|
boolean |
transitionFromOfflineToOpening(HRegionInfo regionInfo,
OpenRegionCoordination.OpenRegionDetails ord)
Transitions region from offline to opening state.
|
boolean |
transitionToOpened(HRegion r,
OpenRegionCoordination.OpenRegionDetails ord)
Tries to move regions to OPENED state.
|
boolean |
tryTransitionFromOfflineToFailedOpen(RegionServerServices rsServices,
HRegionInfo hri,
OpenRegionCoordination.OpenRegionDetails ord)
Tries transition region from offline to failed open.
|
boolean |
tryTransitionFromOpeningToFailedOpen(HRegionInfo hri,
OpenRegionCoordination.OpenRegionDetails ord)
Tries transition from Opening to Failed open.
|
boolean transitionToOpened(HRegion r, OpenRegionCoordination.OpenRegionDetails ord) throws IOException
r
- Region we're working on.ord
- details about region opening taskIOException
boolean transitionFromOfflineToOpening(HRegionInfo regionInfo, OpenRegionCoordination.OpenRegionDetails ord)
regionInfo
- region we're working on.ord
- details about opening task.boolean tickleOpening(OpenRegionCoordination.OpenRegionDetails ord, HRegionInfo regionInfo, RegionServerServices rsServices, String context)
ord
- details about opening task.regionInfo
- region we're working on.rsServices
- instance of RegionServerrServicescontext
- used for logging purposes onlyboolean tryTransitionFromOfflineToFailedOpen(RegionServerServices rsServices, HRegionInfo hri, OpenRegionCoordination.OpenRegionDetails ord)
rsServices
- instance of RegionServerServiceshri
- region we're working onord
- details about region opening taskboolean tryTransitionFromOpeningToFailedOpen(HRegionInfo hri, OpenRegionCoordination.OpenRegionDetails ord)
hri
- region we're working onord
- details about region opening taskOpenRegionCoordination.OpenRegionDetails parseFromProtoRequest(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.OpenRegionRequest.RegionOpenInfo regionOpenInfo)
OpenRegionCoordination.OpenRegionDetails getDetailsForNonCoordinatedOpening()
boolean commitOpenOnMasterSide(AssignmentManager assignmentManager, HRegionInfo regionInfo, OpenRegionCoordination.OpenRegionDetails ord)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.