Skip to content
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

[Backport release-1.4.0-alpha2] fix: notify new SnapshotReplicationListeners about missed replications #8855

Merged
3 commits merged into from
Feb 28, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Description

Backport of #8834 to release-1.4.0-alpha2.

relates to #8830

We are using `SnapshotReplicationListener`s to transition to inactive
when a snapshot replication starts. Snapshot replication can start
before any listeners have registered, which means that the listener will
only be notified about snapshot replication finishing, triggering a
transition to follower without first transitioning to inactive.

Here we are keeping track of ongoing snapshot replication to immediately
notify listeners when they are registering.

(cherry picked from commit 3d1f6c5)
Previously, we only notified new listeners about ongoing replication.
This was not enough in cases where snapshot replication finished before
the listener completed.

(cherry picked from commit 47badee)
Copy link
Member

@lenaschoenburg lenaschoenburg left a comment

Choose a reason for hiding this comment

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

bors r+

@ghost ghost merged commit e292c89 into release-1.4.0-alpha2 Feb 28, 2022
@ghost ghost deleted the backport-8834-to-release-1.4.0-alpha2 branch February 28, 2022 15:42
This pull request was closed.
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.

None yet

1 participant