[ https://issues.apache.org/jira/browse/HBASE-21375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16667916#comment-16667916 ]
Hudson commented on HBASE-21375: -------------------------------- Results for branch branch-2.1 [build #554 on builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.1/554/]: (/) *{color:green}+1 overall{color}* ---- details (if available): (/) {color:green}+1 general checks{color} -- For more information [see general report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.1/554//General_Nightly_Build_Report/] (/) {color:green}+1 jdk8 hadoop2 checks{color} -- For more information [see jdk8 (hadoop2) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.1/554//JDK8_Nightly_Build_Report_(Hadoop2)/] (/) {color:green}+1 jdk8 hadoop3 checks{color} -- For more information [see jdk8 (hadoop3) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.1/554//JDK8_Nightly_Build_Report_(Hadoop3)/] (/) {color:green}+1 source release artifact{color} -- See build output for details. (/) {color:green}+1 client integration test{color} > Revisit the lock and queue implementation in MasterProcedureScheduler > --------------------------------------------------------------------- > > Key: HBASE-21375 > URL: https://issues.apache.org/jira/browse/HBASE-21375 > Project: HBase > Issue Type: Sub-task > Components: proc-v2 > Reporter: Duo Zhang > Assignee: Duo Zhang > Priority: Major > Fix For: 3.0.0, 2.2.0, 2.0.3, 2.1.2 > > Attachments: HBASE-21375-UT.patch, HBASE-21375-UT2.patch, > HBASE-21375-v1.patch, HBASE-21375-v2.patch, HBASE-21375.patch > > > The problem for the old implementation is that we will only check the first > procedure in a queue to see if it could run, if it can not, we will remove > the queue from run queue. So when adding procedure to the scheduler, we have > to try hard to put the procedure which can be executed in front of the queue, > if there are corner cases where we fail to do so, it will likely lead to a > dead lock, that's why we have the tricky code when loading procedures and try > to add them into the scheduler, and also lots of 'if' in the doAdd method of > MasterProcedureScheduler. But this is still not enough to make things right, > so finally [~allan163] and I decided to change the logic in doPoll method, > where we use a loop to find whether there is a procedure can be executed, not > only the first one. -- This message was sent by Atlassian JIRA (v7.6.3#76005)