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

Fix the currently broken initial table copy for a newly added table #8

Open
imor opened this issue Apr 30, 2024 · 0 comments
Open

Fix the currently broken initial table copy for a newly added table #8

imor opened this issue Apr 30, 2024 · 0 comments

Comments

@imor
Copy link
Contributor

imor commented Apr 30, 2024

Currently when the replication binary starts it:

  1. Creates a snapshot.
  2. Reads all the tables in the publication.
  3. Makes an initial table copy of those tables which were not fully copied before.

This can result in different tables being copied with different snapshots which might result in inconsistent data. E.g. this happens in the following scenario:

  1. The publication contains table1 which has been copied.
  2. The replication process stops.
  3. table2 is added to the publication.
  4. The replication process starts.
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

No branches or pull requests

1 participant