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

fix(flink): poll application deployment deletion #1611

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

byashimov
Copy link
Contributor

Tests run fast and fail to delete Flink Application Deployment in transitional statuses.
The state machine for this type of resource is quite complicated. Instead of trying to replicate the transition flow this PR proposes different approach: it calls deletion over and over until succeeds or exceeds context timeout.

@byashimov byashimov requested a review from a team February 22, 2024 12:38
@byashimov byashimov force-pushed the byashimov-poll-flink-app-deployment-status branch from ac6937d to ef33a0a Compare February 22, 2024 12:39
Copy link
Contributor

@Serpentiel Serpentiel left a comment

Choose a reason for hiding this comment

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

LGTM, but please update the test in this PR with the correct SQL, as seen in https://github.com/aiven/terraform-provider-aiven/pull/1606/files#diff-71cae1e8db8b50bfe944747bd7d61f9128e4a137878d4b00e613497bdc415f51. Will do myself in another PR.

Also please keep in mind that currently, the test succeeds with the incorrect SQL in your PR, i.e. Terraform reports that the job was created successfully, even when it ends up in an infinite restarting state, which I believe should be signalized about. Because we report that the job was created successfully to the end user, when in reality it's dead, and I think it's not great, but let's keep this discussion for another time, I think we need more opinion on this. I'm happy to merge it once the SQL is adjusted.

@Serpentiel Serpentiel added the bug Something isn't working label Feb 22, 2024
Copy link
Contributor

@Serpentiel Serpentiel left a comment

Choose a reason for hiding this comment

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

lgtm

@Serpentiel Serpentiel force-pushed the byashimov-poll-flink-app-deployment-status branch from a6fb011 to ca48019 Compare February 23, 2024 09:47
@Serpentiel Serpentiel enabled auto-merge (squash) February 23, 2024 09:48
@Serpentiel Serpentiel merged commit 3c066d3 into main Feb 23, 2024
10 checks passed
@Serpentiel Serpentiel deleted the byashimov-poll-flink-app-deployment-status branch February 23, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants