HBASE-25210 RegionInfo.isOffline is now a duplication with RegionInfo.isSplit (#2580)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: stack <stack@apache.org>
This commit is contained in:
niuyulin 2020-11-04 01:49:38 +08:00 committed by stack
parent 04293ad6dd
commit 770098128a
3 changed files with 13 additions and 0 deletions

View File

@ -254,8 +254,11 @@ class MutableRegionInfo implements RegionInfo {
/**
* @return True if this region is offline.
* @deprecated since 3.0.0 and will be removed in 4.0.0
* @see <a href="https://issues.apache.org/jira/browse/HBASE-25210">HBASE-25210</a>
*/
@Override
@Deprecated
public boolean isOffline() {
return this.offLine;
}
@ -273,8 +276,11 @@ class MutableRegionInfo implements RegionInfo {
/**
* @return True if this is a split parent region.
* @deprecated since 3.0.0 and will be removed in 4.0.0, Use {@link #isSplit()} instead.
* @see <a href="https://issues.apache.org/jira/browse/HBASE-25210">HBASE-25210</a>
*/
@Override
@Deprecated
public boolean isSplitParent() {
if (!isSplit()) {
return false;

View File

@ -218,12 +218,18 @@ public interface RegionInfo extends Comparable<RegionInfo> {
/**
* @return True if this region is offline.
* @deprecated since 3.0.0 and will be removed in 4.0.0
* @see <a href="https://issues.apache.org/jira/browse/HBASE-25210">HBASE-25210</a>
*/
@Deprecated
boolean isOffline();
/**
* @return True if this is a split parent region.
* @deprecated since 3.0.0 and will be removed in 4.0.0, Use {@link #isSplit()} instead.
* @see <a href="https://issues.apache.org/jira/browse/HBASE-25210">HBASE-25210</a>
*/
@Deprecated
boolean isSplitParent();
/**

View File

@ -100,6 +100,7 @@ public class RegionInfoBuilder {
return this;
}
@Deprecated
public RegionInfoBuilder setOffline(boolean offLine) {
this.offLine = offLine;
return this;