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

add c.replicationSlots on sync #2238

Merged
merged 1 commit into from Feb 23, 2023
Merged

add c.replicationSlots on sync #2238

merged 1 commit into from Feb 23, 2023

Conversation

FxKu
Copy link
Member

@FxKu FxKu commented Feb 23, 2023

Turns out on operator restart existing slots are not added by the Create code. I have mistaken ADD events from the log to be calling that code. Only when new clusters are added with slots specified in the manifest they will be added (and dropped when removed).

Newly introduced slots will be added in the sync code. But for existing slots the loop over is continued when there is no difference and therefore it is not added to c.replicationSlots. So whenever there happens an operator restart existing slots wont get synced and not be dropped if they are removed from the manifest.

@FxKu FxKu added this to the 1.9.1 milestone Feb 23, 2023
@FxKu
Copy link
Member Author

FxKu commented Feb 23, 2023

👍

1 similar comment
@jopadi
Copy link
Member

jopadi commented Feb 23, 2023

👍

@FxKu FxKu merged commit e6fb57a into master Feb 23, 2023
@FxKu FxKu deleted the fiy-sync-replication-slots branch February 23, 2023 12:19
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

2 participants