Class QuorumUnavailableException

All Implemented Interfaces:
Serializable

public final class QuorumUnavailableException extends LoomException
Thrown when quorum is lost (majority of nodes down).

This exception indicates that the cluster has lost quorum, meaning that the number of available nodes is less than required for consensus operations. Without quorum, the cluster cannot make progress on writes or leader election.

This typically indicates a serious cluster health issue that requires investigation and remediation (e.g., restarting failed nodes).

Since:
1.0
See Also:
  • Constructor Details

    • QuorumUnavailableException

      public QuorumUnavailableException(int available, int required)
      Creates a new QuorumUnavailableException.
      Parameters:
      available - the number of available (healthy) nodes
      required - the number of nodes required for quorum
  • Method Details

    • getAvailableNodes

      public int getAvailableNodes()
      Gets the number of currently available (healthy) nodes.
      Returns:
      the count of available nodes
    • getRequiredNodes

      public int getRequiredNodes()
      Gets the number of nodes required to maintain quorum.
      Returns:
      the quorum size (typically majority of cluster)
    • getNodesNeeded

      public int getNodesNeeded()
      Calculates how many more nodes are needed to restore quorum.
      Returns:
      the number of nodes needed, or 0 if quorum is already available