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-postgres] : Throw exception if there are any streams acively undergoing vacuum #41651

Merged
merged 3 commits into from
Jul 12, 2024

Conversation

akashkulk
Copy link
Contributor

This case never occurs as it involves holding an exclusive lock on the table. If it doess happen, the query will not succeed. We can simplify code by throwing an exception if this ever occurs.

Copy link

vercel bot commented Jul 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 12, 2024 8:02pm

@akashkulk akashkulk marked this pull request as ready for review July 12, 2024 00:05
@akashkulk akashkulk requested a review from a team as a code owner July 12, 2024 00:05
@akashkulk akashkulk requested a review from rodireich July 12, 2024 00:05
if (!streamsUnderVacuum.isEmpty()) {
throw new ConfigErrorException(
"Postgres database is undergoing a full vacuum - cannot proceed with the sync. Please sync again when the vacuum is finished.");
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really want this to be a ConfigErrorException? Don't we want to retry syncing later on?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, will change to TransientErrorException

@akashkulk akashkulk merged commit d8a6f43 into master Jul 12, 2024
35 checks passed
@akashkulk akashkulk deleted the akash/pg-remove-vacuum branch July 12, 2024 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/postgres
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants