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

STREAM-166: fix bug in CDC resource #297

Merged
merged 1 commit into from
Aug 31, 2023
Merged

Conversation

pgier
Copy link
Collaborator

@pgier pgier commented Aug 31, 2023

This fixes an issue when the local CDC state is out of sync with the remote resource state and the plugin crashes with an index out of bounds on the CDC status slice.

The issue happens when the user does the following

  1. create CDC configs using Terraform
  2. manually delete all CDC configs for that database via the UI
  3. run terraform apply again

This also includes some other minor code cleanup.

This fixes an issue when the local CDC state is out of sync with the remote resource state
and the plugin crashes with an index out of bounds on the CDC status slice.

The issue happens when the user does the following
1. create CDC configs using Terraform
2. manually delete all CDC configs for that database via the UI
3. run terraform apply again

This also includes some other minor code cleanup.
@pgier pgier force-pushed the STREAM-166-CDC-error-handling branch from c0b42e3 to 49426d5 Compare August 31, 2023 17:08
@pgier pgier merged commit 1bc7c28 into main Aug 31, 2023
4 checks passed
@msmygit msmygit deleted the STREAM-166-CDC-error-handling branch September 15, 2023 16:40
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.

2 participants