-
Notifications
You must be signed in to change notification settings - Fork 8
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
Failed PostgreSQL Source update causes invalid state and won't refresh #421
Comments
Something seems funny with the way the Terraform provider is rigged up on this. We provide the but it's actually this terraform-provider-materialize/pkg/resources/resource_source.go Lines 61 to 80 in 6b3637a
That terraform-provider-materialize/pkg/resources/resource_source_postgres.go Lines 203 to 224 in 6b3637a
I think the symptoms we saw today are well explained by this code. The first update added some new tables to the state. The resulting update failed because the tables did not exist upstream. The second update then removed those tables from the state. The provider logic computed I think the way out here is to teach If a user does want to do |
Not supporting |
We were recently adding new sub-sources to an existing PostgreSQL source and had a bumpy experience as follows:
ERROR: table raw.organization__c not found in source (SQLSTATE XX000)
. We realized we had a typo in our sub-source names.ERROR: table raw.organization__c not found in source (SQLSTATE XX000)
.pulumi refresh
but it surprisingly reported there was no changes.This leaves us suspecting two potential bugs with the PostgreSQL source resource type:
pulumi refresh
doesn't reload the sub-sourcesThe text was updated successfully, but these errors were encountered: