-
Notifications
You must be signed in to change notification settings - Fork 1k
PHOENIX-7602 Replication Log Writer (Store and Forward mode) #2315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: PHOENIX-7562-feature
Are you sure you want to change the base?
Conversation
| // 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(); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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.
32dc4e2 to
e213985
Compare
This patch implements the replication mode transitions and log forwarding from fallback cluster to the standby cluster.
58da592 to
b941f01
Compare
This patch implements the replication mode transitions and log forwarding from fallback cluster to the standby cluster.