[ 
https://issues.apache.org/jira/browse/HBASE-24885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17179144#comment-17179144
 ] 

Michael Stack commented on HBASE-24885:
---------------------------------------

{quote}Then I think it is the caller's duty to make sure that you do not do 
something wrong... HBCK2 is for fixing assignment problems, so the method is 
designed to skip all the checks and force to do an assignment..
{quote}
We have an '--override' flag on assigns/unassigns in hbck2. When you pass this 
flag, I agree it should do as you describe above. When you do not pass this 
flag, if it can, the system should stop you shooting yourself in the foot with 
clear messaging on why it is not doing as you asked.

Making repairs on largish clusters with thousands of assignment problems, I 
make mistakes especially when running hasty bulk 'fixes'; i end up swapping one 
problem for a new one or as is the case here, doubling the problems that need 
fixing because I made the wrong call.

Let me fix the comment too. It needs some color.

> STUCK RIT by hbck2 assigns
> --------------------------
>
>                 Key: HBASE-24885
>                 URL: https://issues.apache.org/jira/browse/HBASE-24885
>             Project: HBase
>          Issue Type: Bug
>          Components: hbck2, Region Assignment
>    Affects Versions: 3.0.0-alpha-1, 2.2.3
>            Reporter: Bo Cui
>            Assignee: Bo Cui
>            Priority: Major
>
> If a region has been assign to rs1 and then client assigns region again by 
> "hbck2 assigns"
> 1、if  regionPlan is region to be assign to rs2,the region will be opened on 
> rs1 and rs2.
> master log:
> {quote}WARN org.apache.hadoop.hbase.master.assignment.AssignmentManager: 
> rit=OPEN, location=rs2, table=tableName, region=reionName reported OPEN on 
> server=rs1 but state has otherwise
> {quote}
> 2、if regionPlan is region to be assign to rs1, the 
> TransitRegionStateProcedure and OpenRegionProcedure will stuck. because rs1 
> is not responding to master
>  rslog:
> {quote}Receiving OPEN for the region:{}, which we are already trying to OPEN 
> - ignoring this new request for this region.
> {quote}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to