MV_REPLICATION_MANAGEMENT_REF_DB_STATE
This view shows the state of the reference database replica on the node.
This view is also available as an LMV (local view per node) view.
Column Name | Description |
---|---|
NODE_ID | The node ID for the node that originated this replication management row. |
ID | Internal ID for replication management. Useful for cross-referencing with tracelogs. |
DISTRIBUTED_DATABASE_ID | The ID of this distributed database, in the sharded database table of cluster database metadata. |
INSTANCE_NODE_ID | The ID of the node that hosts this reference database replica. Will be the same value as NODE_ID. |
METADATA_ROLE | The role of this instance in cluster metadata. Possible values: Master, Async Replica, Unrecoverable, Paused Replica. |
LOCAL_ROLE | The role of this instance locally on the node where it exists. Possible values: Master, Replica, Transitioning, Dropping or Reprovisioning, Unrecoverable, Recovering, Missing (disconnected). |
DR_STATUS | Whether the database is a DR replica or not, and if so whether it is paused or not. Possible values: Not DR, Active DR, Paused DR. |
MASTER_METADATA_TERM | Term uniquely identifies a period during which an instance of a database is a master. This holds the term of the master in metadata - it will always match LOCAL_TERM if this instance’s METADATA_ROLE is Master. |
LOCAL_TERM | Term uniquely identifies a period during which an instance of a database is a master. |
UPDATE_ITERATION | The last iteration counter on which this state was updated. Used to cross-check with the other replication management tables. |
DATABASE_NAME | Name of the database. |
RUNTIME_STATE_UPDATE_RESULT | Records whether the runtime state for this reference database was successfully updated or not (this includes partition boundaries, for example). This is not used to take an action, but is only used to determine whether an iteration of the replication management thread succeeded or not. |