HBASE-19906 TestZooKeeper Timeout Includes move of TestQoSFunction from smalltests to mediumtests; it timedout in a run.
This commit is contained in:
parent
ced502801f
commit
23471deb75
|
@ -865,6 +865,11 @@ public class HMaster extends HRegionServer implements MasterServices {
|
|||
// Make sure meta assigned before proceeding.
|
||||
status.setStatus("Recovering Meta Region");
|
||||
|
||||
// Check if master is shutting down because issue initializing regionservers or balancer.
|
||||
if (isStopped()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// we recover hbase:meta region servers inside master initialization and
|
||||
// handle other failed servers in SSH in order to start up master node ASAP
|
||||
MasterMetaBootstrap metaBootstrap = createMetaBootstrap(this, status);
|
||||
|
|
|
@ -1895,9 +1895,17 @@ public class AssignmentManager implements ServerListener {
|
|||
.getRegionInfoForReplica(RegionInfoBuilder.FIRST_META_REGIONINFO,
|
||||
RegionInfo.DEFAULT_REPLICA_ID);
|
||||
RegionState regionStateNode = getRegionStates().getRegionState(hri);
|
||||
if (!regionStateNode.getServerName().equals(serverName)) {
|
||||
if (regionStateNode == null) {
|
||||
LOG.warn("RegionStateNode is null for " + hri);
|
||||
return;
|
||||
}
|
||||
ServerName rsnServerName = regionStateNode.getServerName();
|
||||
if (rsnServerName != null && !rsnServerName.equals(serverName)) {
|
||||
return;
|
||||
} else if (rsnServerName == null) {
|
||||
LOG.warn("Empty ServerName in RegionStateNode; proceeding anyways in case latched " +
|
||||
"RecoverMetaProcedure so meta latch gets cleaned up.");
|
||||
}
|
||||
// meta has been assigned to crashed server.
|
||||
LOG.info("Meta assigned to crashed " + serverName + "; reassigning...");
|
||||
// Handle failure and wake event
|
||||
|
|
|
@ -22,8 +22,8 @@ import static org.mockito.Mockito.when;
|
|||
import org.apache.hadoop.conf.Configuration;
|
||||
import org.apache.hadoop.hbase.*;
|
||||
import org.apache.hadoop.hbase.HBaseClassTestRule;
|
||||
import org.apache.hadoop.hbase.testclassification.MediumTests;
|
||||
import org.apache.hadoop.hbase.testclassification.RegionServerTests;
|
||||
import org.apache.hadoop.hbase.testclassification.SmallTests;
|
||||
import org.junit.Before;
|
||||
import org.junit.ClassRule;
|
||||
import org.junit.Test;
|
||||
|
@ -36,7 +36,7 @@ import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MultiReque
|
|||
* Basic test that qos function is sort of working; i.e. a change in method naming style
|
||||
* over in pb doesn't break it.
|
||||
*/
|
||||
@Category({RegionServerTests.class, SmallTests.class})
|
||||
@Category({RegionServerTests.class, MediumTests.class})
|
||||
public class TestQosFunction extends QosTestHelper {
|
||||
|
||||
@ClassRule
|
||||
|
|
Loading…
Reference in New Issue