HBASE-19392 TestReplicaWithCluster#testReplicaGetWithPrimaryAndMetaDown failure in master
Signed-off-by: Huaxiang Sun <hsun@apache.org>
This commit is contained in:
parent
df3668818d
commit
752be198e7
|
@ -47,7 +47,6 @@ import org.apache.hadoop.hbase.Waiter;
|
||||||
|
|
||||||
import org.apache.hadoop.hbase.client.replication.ReplicationAdmin;
|
import org.apache.hadoop.hbase.client.replication.ReplicationAdmin;
|
||||||
import org.apache.hadoop.hbase.coprocessor.CoreCoprocessor;
|
import org.apache.hadoop.hbase.coprocessor.CoreCoprocessor;
|
||||||
import org.apache.hadoop.hbase.coprocessor.HasRegionServerServices;
|
|
||||||
import org.apache.hadoop.hbase.coprocessor.ObserverContext;
|
import org.apache.hadoop.hbase.coprocessor.ObserverContext;
|
||||||
import org.apache.hadoop.hbase.coprocessor.RegionCoprocessor;
|
import org.apache.hadoop.hbase.coprocessor.RegionCoprocessor;
|
||||||
import org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment;
|
import org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment;
|
||||||
|
@ -193,8 +192,7 @@ public class TestReplicaWithCluster {
|
||||||
if (!e.getEnvironment().getRegion().getRegionInfo().isMetaRegion() && (replicaId == 0)) {
|
if (!e.getEnvironment().getRegion().getRegionInfo().isMetaRegion() && (replicaId == 0)) {
|
||||||
LOG.info("Get, throw Region Server Stopped Exceptoin for region " + e.getEnvironment()
|
LOG.info("Get, throw Region Server Stopped Exceptoin for region " + e.getEnvironment()
|
||||||
.getRegion().getRegionInfo());
|
.getRegion().getRegionInfo());
|
||||||
throw new RegionServerStoppedException("Server " +
|
throw new RegionServerStoppedException("Server " + e.getEnvironment().getServerName()
|
||||||
((HasRegionServerServices)e.getEnvironment()).getRegionServerServices().getServerName()
|
|
||||||
+ " not running");
|
+ " not running");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -224,8 +222,7 @@ public class TestReplicaWithCluster {
|
||||||
LOG.info("Scan, throw Region Server Stopped Exceptoin for replica " + e.getEnvironment()
|
LOG.info("Scan, throw Region Server Stopped Exceptoin for replica " + e.getEnvironment()
|
||||||
.getRegion().getRegionInfo());
|
.getRegion().getRegionInfo());
|
||||||
|
|
||||||
throw new RegionServerStoppedException("Server " +
|
throw new RegionServerStoppedException("Server " + e.getEnvironment().getServerName()
|
||||||
((HasRegionServerServices)e.getEnvironment()).getRegionServerServices().getServerName()
|
|
||||||
+ " not running");
|
+ " not running");
|
||||||
} else {
|
} else {
|
||||||
LOG.info("Scan, We're replica region " + replicaId);
|
LOG.info("Scan, We're replica region " + replicaId);
|
||||||
|
|
Loading…
Reference in New Issue