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

source-*-batch: No longer run discovery during Validate #1298

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

willdonnelly
Copy link
Member

@willdonnelly willdonnelly commented Feb 29, 2024

Description:

I have reason to believe that running discovery is causing publication failures for at least one user whose database has a lot of stuff in it, and there's no strong need to run the full discovery process as part of validation -- it was just an easy-to-implement way of getting a bunch of sanity checking done all at once.

So the call to Discover() is removed, in favor of merely parsing the config and connecting to the database. The database connect function has been modified in each connector so that it now runs a no-op SELECT true; query, to make sure that we don't introduce some sort of subtle failure mode where validation passes but the user doesn't actually have the ability to execute queries at all.


This change is Reviewable

I have reason to believe that running discovery is causing
publication failures for at least one user whose database has
a lot of stuff in it, and there's no strong need to run the
full discovery process as part of validation -- it was just
an easy-to-implement way of getting a bunch of sanity checking
done all at once.

So the call to `Discover()` is removed, in favor of merely parsing
the config and connecting to the database. The database connect
function has been modified in each connector so that it now runs
a no-op `SELECT true;` query, to make sure that we don't introduce
some sort of subtle failure mode where validation passes but the
user doesn't actually have the ability to execute queries at all.
@willdonnelly willdonnelly requested a review from a team February 29, 2024 18:33
Copy link
Member

@psFried psFried left a comment

Choose a reason for hiding this comment

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

LGTM

@dyaffe dyaffe merged commit 49f8415 into main Feb 29, 2024
46 of 50 checks passed
@willdonnelly willdonnelly deleted the wgd/redshift-20240229 branch March 1, 2024 07: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