da3e06afab
Add backoff when stuck in RegionTransitionProcedure, the subclass of AssignProcedure and UnassignProcedure. Can happen when we go to transition but the current Region state is not what we expect. M hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/Procedure.java Add doc on being able to suspend and wait on a timeout. M hbase-protocol-shaded/src/main/protobuf/MasterProcedure.proto Add 'attempt' counter so we can do backoff when we get stuck. M hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/AssignProcedure.java M hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/UnassignProcedure.java Add persistence of new 'attempt' counter M hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionTransitionProcedure.java Doc data members that are persisted by subclasses given this is 'odd'. Add a counter for 'attempts' used when 'stuck' to implement backoff. Add suspend with timeout when 'stuck'. Add callback when timeout is exhausted which does wakeup of this procedure. A hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/TestUnexpectedStateException.java Test of backoff. |
||
---|---|---|
.. | ||
src/main | ||
README.txt | ||
pom.xml |
README.txt
This module has proto files used by core. These protos overlap with protos that are used by coprocessor endpoints (CPEP) in the module hbase-protocol. So core versions have a different name, the generated classes are relocated -- i.e. shaded -- to a new location; they are moved from org.apache.hadoop.hbase.* to org.apache.hadoop.hbase.shaded.