Paragrf opened a new issue, #384:
URL: https://github.com/apache/kvrocks-controller/issues/384

   ### Motivation
   Implement Controller modifications to ensure master-replica data consistency 
during failover, aligning with server-side changes in apache/kvrocks#3377
   
   
   ### Solution
   
   - Step 1 (Pause): Send CLIENT PAUSE <timeout> WRITE from the controller to 
the current master.
   
   - Step 2 (Wait): Monitor the master-replica sequence gap until it hits zero, 
ensuring no data loss.
   
   - Step 3 (Metadata): Update the global topology metadata for the switchover.
   
   - Step 4 (Switch & Unpause): Promote the target and demote the old master; 
then explicitly call CLIENT UNPAUSE on the old master to restore its status.
   
   - Step 5 (Replicate): Reconfigure all other followers to sync from the new 
master.
   
   ### Are you willing to submit a PR?
   
   I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to