MV_ REPLICATION_ MANAGEMENT_ PARTITIONS_ STATE
This view shows the state of partition instances relevant to the node, which are listed in cluster metadata.
This view is also available as an LMV (local view per node) view.
Column Name |
Description |
---|---|
NODE_ |
The ID of the node that produced this replication management row, and for which this partition instance is relevant (as in, it’s either hosted on said node, or replicates from an instance on that node). |
ID |
Internal ID for replication management. |
INSTANCE_ |
The ID of this instance in the partition instances table of cluster database metadata. |
MASTER_ |
The ID in cluster metadata of the master instance for this partition. |
DISTRIBUTED_ |
The ID of this instance's distributed database, in the sharded database table of cluster database metadata. |
ORDINAL |
This partition's ordinal. |
INSTANCE_ |
The node ID of the node where this partition instance is hosted. |
METADATA_ |
The role of this instance in cluster metadata. |
LOCAL_ |
When NODE_ When NODE_ |
DR_ |
Whether the database is a DR replica or not, and if so whether it is paused or not. |
PENDING_ |
Whether there is an incomplete asynchronous task still pending. |
IS_ |
Whether this partition's sharded database is configured to use synchronous replication. |
MASTER_ |
This partition master's term. |
LOCAL_ |
Term uniquely identifies a period during which an instance of a partition is a master. |
LAST_ |
The outcome of the last action performed on this partition instance. |
TIME_ |
The elapsed time since the last failure. |
METADATA_ |
Counts the number of times there has been a metadata state change for this partition instance. |
LOCAL_ |
If this is a non-local instance (INSTANCE_ |
UPDATE_ |
The last iteration counter on which this state was updated - used to cross-check with the other replication management tables. |
ALL_ |
Only applies to masters. |
MASTER_ |
Indicates whether the local master of this partition is ready for replicas to be added. |
NODE_ |
Only applies to remote replicas. |
CONNECTED_ |
Only applies to local replicas. |
MASTER_ |
Only applies to replicas, and only relevant for DR replicas. |
REMOTE_ |
Only applies to local DR replicas, and only relevant for DR masters. |
REMOTE_ |
Only applies to local DR replicas, and only relevant for DR masters. |
DATABASE_ |
Name of the partition database. |
PROVISIONED |
Only applies to replicas in other nodes. |
IS_ |
Whether the master instance for this partition is online in metadata. |
IS_ |
Whether this is an unlimited storage database and its remote storage has been dropped, and thus it is not usable. |
ACTION_ |
Which action the system will take on this partition to move it to a success state, or nothing if the partition is already in a success state, or if it is impossible to correct its state. |
SUCCESS_ |
The success states of all partitions are aggregated to form a global success state. Success: the most recent iteration of the replication management thread ended successfully, with local state matching metadata state. Soft Failure: the local state does not match metadata state, but there is no mismatch that impacts the correct functioning of the cluster (for example, if all that is wrong is a disconnected async replica, then the cluster is technically healthy, although it is replication management’s responsibility to reconnect it, so we’d be in this state), and thus it is not blocking the advancement of Hard Failure: the local state does not match metadata state in a way that impacts the correct functioning of the cluster (for example, if a sync replica is disconnected), and will block the advancement of |
SAFE_ |
The lower bound of the pre-prepare timestamps of any unresolved 2PC their participants (reference and partition databases) participate or will participate in. |
TRANSITION_ |
Term uniquely identifies a period during which an instance of a partition is a master. |
Last modified: June 5, 2023