HBASE-20169 NPE when calling HBTU.shutdownMiniCluster
commitacbdb86bb4e1eaa496bb76b8a6dc77c15a3141c1
authorMichael Stack <stack@apache.org>
Sat, 17 Mar 2018 03:36:57 +0000 (16 20:36 -0700)
committerMichael Stack <stack@apache.org>
Tue, 20 Mar 2018 20:11:57 +0000 (20 13:11 -0700)
treed130a6d28c06a17ad6a0dede28235f2b93e97ec3
parent74c28bdf4448c25612df71bb3bebf0420eadd719
HBASE-20169 NPE when calling HBTU.shutdownMiniCluster

Adds a prepare step to RecoverMetaProcedure in which we test for
cluster up and master being up. If not up, we fail the run.

Modified hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/HFileCleaner.java
Modified hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ChunkCreator.java
 Minor log cleanup.

Modified hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/RecoverMetaProcedure.java
 Add pepare step.

Modified hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestAssignmentManagerMetrics.java
 Debug for the failing test....

Added hbase-server/src/test/java/org/apache/hadoop/hbase/master/procedure/TestRecoverMetaProcedure.java
 Test the prepare step goes down if master or cluster are down.
hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/StateMachineProcedure.java
hbase-protocol-shaded/src/main/protobuf/MasterProcedure.proto
hbase-server/src/main/java/org/apache/hadoop/hbase/master/cleaner/HFileCleaner.java
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/RecoverMetaProcedure.java
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ChunkCreator.java
hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestAssignmentManagerMetrics.java
hbase-server/src/test/java/org/apache/hadoop/hbase/master/procedure/TestRecoverMetaProcedure.java [new file with mode: 0644]