Skip to content

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.

3 participants