Skip to content

skip slots where publication sync failed #2091

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

Merged
merged 1 commit into from
Oct 25, 2022
Merged

skip slots where publication sync failed #2091

merged 1 commit into from
Oct 25, 2022

Conversation

FxKu
Copy link
Member

@FxKu FxKu commented Oct 25, 2022

If tables for streams are not found in the database (maybe because of a typo in the table name) the publication sync will fail. The operator only returns a warning and continues to create the logical replication slot. This leads to the same error that #2085 already tried to solve. Even when creation of publications succeeds in future sync cycles, Postgres will return an error that they do not exist because the slots have been created before.

This PR suggests to only sync slots where publication sync succeeded.

@FxKu FxKu added this to the 1.9 milestone Oct 25, 2022
@FxKu
Copy link
Member Author

FxKu commented Oct 25, 2022

👍

1 similar comment
@idanovinda
Copy link
Member

👍

@FxKu FxKu merged commit 529cdfc into master Oct 25, 2022
@FxKu FxKu deleted the pub-sync-fail branch October 25, 2022 12:51
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