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

explicitly call EnsurePullability while adding tables #1298

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

heavycrystal
Copy link
Contributor

The UI for dynamic table addition should prevent tables that we cannot mirror via CDC [no primary key + replident != full] to be selected. However, we end up using the signal for adding tables sometimes, and currently there is no check in this codepath.

Invoking EnsurePullability explicitly to guard against this.

})
if err := ensurePullabilityFuture.Get(ctx, nil); err != nil {
w.logger.Error("failed to ensure pullability for additional tables: ", err)
return err
Copy link
Contributor

@Amogh-Bharadwaj Amogh-Bharadwaj Feb 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be return nil?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

processCDCFlowConfigUpdates return value should not be aborting whole workflow. Any flow config update error should result in an error being reported to user in some way, & then being ignored. Then this can remain return err

@iskakaushik iskakaushik requested a review from serprex February 15, 2024 15:46
flow/workflows/cdc_flow.go Outdated Show resolved Hide resolved
@heavycrystal heavycrystal force-pushed the dynadd-ensure-pullability branch from c9dd1c0 to 97a23c7 Compare February 19, 2024 19:48
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

4 participants