Package | Description |
---|---|
org.apache.hadoop.hbase.coordination | |
org.apache.hadoop.hbase.regionserver | |
org.apache.hadoop.hbase.regionserver.handler |
Modifier and Type | Class and Description |
---|---|
static class |
ZkCloseRegionCoordination.ZkCloseRegionDetails
ZK-based implementation.
|
Modifier and Type | Method and Description |
---|---|
CloseRegionCoordination.CloseRegionDetails |
ZkCloseRegionCoordination.getDetaultDetails()
No ZK tracking will be performed for that case.
|
CloseRegionCoordination.CloseRegionDetails |
CloseRegionCoordination.getDetaultDetails()
Get details object with params for case when we're closing on
regionserver side internally (not because of RPC call from master),
so we don't parse details from protobuf request.
|
CloseRegionCoordination.CloseRegionDetails |
ZkCloseRegionCoordination.parseFromProtoRequest(AdminProtos.CloseRegionRequest request)
Parse ZK-related fields from request.
|
CloseRegionCoordination.CloseRegionDetails |
CloseRegionCoordination.parseFromProtoRequest(AdminProtos.CloseRegionRequest request)
Construct CloseRegionDetails instance from CloseRegionRequest.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ZkCloseRegionCoordination.checkClosingState(HRegionInfo regionInfo,
CloseRegionCoordination.CloseRegionDetails crd)
In ZK-based version we're checking for bad znode state, e.g.
|
boolean |
CloseRegionCoordination.checkClosingState(HRegionInfo regionInfo,
CloseRegionCoordination.CloseRegionDetails crd)
Called before actual region closing to check that we can do close operation
on this region.
|
void |
ZkCloseRegionCoordination.setClosedState(HRegion region,
ServerName sn,
CloseRegionCoordination.CloseRegionDetails crd)
In ZK-based version we do some znodes transitioning.
|
void |
CloseRegionCoordination.setClosedState(HRegion region,
ServerName sn,
CloseRegionCoordination.CloseRegionDetails crd)
Called after region is closed to notify all interesting parties / "register"
region as finally closed.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
HRegionServer.closeRegion(String encodedName,
boolean abort,
CloseRegionCoordination.CloseRegionDetails crd,
ServerName sn)
Close asynchronously a region, can be called from the master or internally by the regionserver
when stopping.
|
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.