private void releaseTableExclusiveLockAndComplete(Procedure<?> proc, TableName tableName) {
    // release xlock
    queue.wakeTableExclusiveLock(proc, tableName);
    // mark the procedure as complete
    queue.completionCleanup(proc);
  }
Verify the correct logic of RWLocks on the queue
hbase-server/src/test/java/org/apache/hadoop/hbase/master/procedure/TestMasterProcedureScheduler.java