Class LockProcedure

java.lang.Object
org.apache.hadoop.hbase.procedure2.Procedure<MasterProcedureEnv>
org.apache.hadoop.hbase.master.locking.LockProcedure
All Implemented Interfaces:
Comparable<Procedure<MasterProcedureEnv>>, TableProcedureInterface

@Private public final class LockProcedure extends Procedure<MasterProcedureEnv> implements TableProcedureInterface
Procedure to allow blessed clients and external admin tools to take our internal Schema locks used by the procedure framework isolating procedures doing creates/deletes etc. on table/namespace/regions. This procedure when scheduled, acquires specified locks, suspends itself and waits for:
  • Call to unlock: if lock request came from the process itself, say master chore.
  • Timeout : if lock request came from RPC. On timeout, evaluates if it should continue holding the lock or not based on last heartbeat timestamp.