Skip to content

Wait for app in DELETING state before create#5263

Open
varundeepsaini wants to merge 5 commits intodatabricks:mainfrom
varundeepsaini:fix/deleting-wait
Open

Wait for app in DELETING state before create#5263
varundeepsaini wants to merge 5 commits intodatabricks:mainfrom
varundeepsaini:fix/deleting-wait

Conversation

@varundeepsaini
Copy link
Copy Markdown

@varundeepsaini varundeepsaini commented Dec 6, 2025

Changes

Fixes: #4006

Wait for app in DELETING state before creating a new app. When a DAB app is destroyed and immediately redeployed, the create fails with "An app with the same name already exists" because the app is still in DELETING state. This change adds a wait before create to handle this race condition.

I couldn't replicate the issue locally but have added unit tests to verify the behavior.

Tests

  • make test run locally
  • relevant change in docs/ folder
  • covered with integration tests in internal/acceptance
  • using Go SDK
  • using TF Plugin Framework
  • has entry in NEXT_CHANGELOG.md file

@varundeepsaini varundeepsaini requested review from a team as code owners December 6, 2025 15:39
@varundeepsaini varundeepsaini requested review from hectorcast-db and removed request for a team December 6, 2025 15:39
@varundeepsaini
Copy link
Copy Markdown
Author

@alexott have made the changes. Please review again
@andrewnester can you also take a look

@varundeepsaini
Copy link
Copy Markdown
Author

@andrewnester bump ^^

@github-actions
Copy link
Copy Markdown

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/terraform

Inputs:

  • PR number: 5263
  • Commit SHA: 182c98257ba2cb16e933fb96e30a7fe15a69a914

Checks will be approved automatically on success.

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.

Deploying an app immediately after it is deleted fails

3 participants