Merged
Conversation
Introduces a new cluster health endpoint with detailed OpenRaft metrics in the API, including node roles, replication lag, and catchup progress. Refactors Raft applier wiring to occur after AppContext initialization for correct dependency injection. Enhances Raft executor and cluster node info structures to support catchup progress and snapshot metrics. Updates tests and internal APIs to use unified Meta group naming and improves status handling for joining and catching up nodes.
Adds a unified applier abstraction to handle all database command execution through a single interface, supporting both standalone and cluster (Raft) modes. Implements new applier modules, command types, error handling, and event broadcasting. Refactors AppContext to wire up the unified applier and updates related initialization logic. This is part of the effort to unify command execution paths and prepare for cluster-wide Raft-based command replication.
Refactors the applier system to always use RaftExecutor and RaftApplier for both single-node and cluster modes, removing standalone and cluster-specific applier code. All commands now flow through Raft consensus, ensuring a single code path for DDL, DML, and metadata operations. Removes legacy applier, command, and forwarder modules, updates configuration defaults, and adjusts related initialization and test code for unified behavior.
Adds leader-only job execution in cluster mode, ensuring only the leader node processes jobs. Introduces failover handlers for jobs and live query subscriptions to recover or clean up orphaned resources when nodes fail or leadership changes. Updates job claiming, releasing, and failover logic, and refactors cluster configuration to support new snapshot and failover policies. Also adds new UI components and tests for cluster health and leader job handling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.