infraio commented on issue #631: HBASE-23035 Retain region to the last 
RegionServer make the failover …
URL: https://github.com/apache/hbase/pull/631#issuecomment-533019507
 
 
   > IIRC there is way to interrupt an existing TRSP from SCP, I think in that 
method we should also do the same thing?
   
   Set forceNewPlan = true too when call serverCrashed. The TRSP may in any 
state when call this. 
   1. If in REGION_STATE_TRANSITION_GET_ASSIGN_CANDIDATE, forceNewPlan is true 
then it will choose a round-robin server.
   2. If in REGION_STATE_TRANSITION_OPEN, regionClosedAbnormally will set 
region location to null then it will go back to 
REGION_STATE_TRANSITION_GET_ASSIGN_CANDIDATE.
   3. If in REGION_STATE_TRANSITION_CONFIRM_OPENED, it is same to failed open 
region.
   4. If in REGION_STATE_TRANSITION_CONFIRM_CLOSED, it will go back to 
REGION_STATE_TRANSITION_GET_ASSIGN_CANDIDATE.
   5. If in REGION_STATE_TRANSITION_CLOSE, it will go back to 
REGION_STATE_TRANSITION_GET_ASSIGN_CANDIDATE.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to