Class ClusterLockManager

java.lang.Object
com.linkedin.venice.utils.locks.ClusterLockManager

public class ClusterLockManager extends Object
A centralized place to control the locking behavior, such as lock order and lock granularity. There is 1-1 mapping between ClusterLockManager instances and clusters. One instance only manages locks for one cluster. Each instance has a pair of cluster-level read/write locks and multiple store-level read/write locks. Every store-level read/write lock will take cluster-level read lock first. Locking on the whole cluster, including whole cluster write operations or controller shutdown, will take the cluster-level write lock.
  • Constructor Details

    • ClusterLockManager

      public ClusterLockManager(String clusterName)
  • Method Details