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

snapshot injection bug #652

Merged
merged 4 commits into from
Nov 20, 2023
Merged

snapshot injection bug #652

merged 4 commits into from
Nov 20, 2023

Conversation

MarinPostma
Copy link
Contributor

This PR fixes a bug with very large snapshots that would cause the replica to enter an infinite loop of replication.

The issue was that with a sufficiently large snapshot to be injected in multiple chunks, we would not record the correct commit frame_no. To remidy that, the injector keeps track of the largest frame_no it's seen within a transaction and sets that to the commit frameno on commit.

@MarinPostma MarinPostma added this pull request to the merge queue Nov 20, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 20, 2023
@MarinPostma MarinPostma added this pull request to the merge queue Nov 20, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 20, 2023
@MarinPostma MarinPostma force-pushed the snapshot-injection-bug branch from 09a9cda to dab0f1d Compare November 20, 2023 15:06
@MarinPostma MarinPostma added this pull request to the merge queue Nov 20, 2023
Merged via the queue into main with commit c4748a2 Nov 20, 2023
12 checks passed
@MarinPostma MarinPostma deleted the snapshot-injection-bug branch November 20, 2023 15:27
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