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 stable/1.3] fix: notify new SnapshotReplicationListeners about missed replications #8854

Merged
4 commits merged into from
Feb 28, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Description

Backport of #8834 to stable/1.3.

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

@oleschoenburg oleschoenburg 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 pushed a commit that referenced this pull request Feb 28, 2022
8854: [Backport stable/1.3] fix: notify new `SnapshotReplicationListener`s about missed replications r=oleschoenburg a=github-actions[bot]

# Description
Backport of #8834 to `stable/1.3`.

relates to #8830

Co-authored-by: Ole Schönburg <ole.schoenburg@gmail.com>
this language feature is not available in 1.3
@ghost
Copy link

ghost commented Feb 28, 2022

Canceled.

@oleschoenburg
Copy link
Member

bors r+

ghost pushed a commit that referenced this pull request Feb 28, 2022
8854: [Backport stable/1.3] fix: notify new `SnapshotReplicationListener`s about missed replications r=oleschoenburg a=github-actions[bot]

# Description
Backport of #8834 to `stable/1.3`.

relates to #8830

Co-authored-by: Ole Schönburg <ole.schoenburg@gmail.com>
@ghost
Copy link

ghost commented Feb 28, 2022

Build failed:

@oleschoenburg
Copy link
Member

bors retry

@ghost ghost merged commit 9dea3d0 into stable/1.3 Feb 28, 2022
@ghost ghost deleted the backport-8834-to-stable/1.3 branch February 28, 2022 16:59
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