Skip to content

Conversation

@tkhurana
Copy link
Contributor

@tkhurana tkhurana commented Nov 7, 2025

This patch implements the replication mode transitions and log forwarding from fallback cluster to the standby cluster.

// Doing the mode check on sync points makes the implementation more robust
// since we can guarantee that all unsynced appends have been flushed to the
// replication log before we switch the replication mode
ReplicationMode newMode = getMode();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mode change should be handled in at the beginning of processPendingSyncs() in order to make sure that it is not delayed indefinitely

// is not processing any event like append/sync because this is the only thread
// that is consuming the events from the ring buffer and handing them off to the
// mode
currentModeImpl.onExit(true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

onExit should be done asynchronously so that it does not add additional time in the failure handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants