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

CDC Flow: fix state wipe #1434

Merged
merged 1 commit into from
Mar 5, 2024
Merged

CDC Flow: fix state wipe #1434

merged 1 commit into from
Mar 5, 2024

Conversation

Amogh-Bharadwaj
Copy link
Contributor

@Amogh-Bharadwaj Amogh-Bharadwaj commented Mar 5, 2024

Pause mirror second time onwards was not being respected as the state was not being wiped if only idle timeout / batch size is edited, because when additionTables is empty we just return nil before setting state to nil. This made flowConfigUpdate perenially not nil, which caused the mirror to never enter the pause loop.

This PR moves the setting of state to nil outside of processConfigUpdates and also adds logs

@Amogh-Bharadwaj Amogh-Bharadwaj merged commit 6612e76 into main Mar 5, 2024
7 checks passed
@Amogh-Bharadwaj Amogh-Bharadwaj deleted the cdcflow-log-and-wipe-fix branch March 5, 2024 12:21
@iskakaushik
Copy link
Contributor

@heavycrystal -- can you add a test that will prevent this from regressing?

cc: @serprex

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