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] Add no_wait flag to databricks_online_table to avoid timeouts #4056

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexott
Copy link
Contributor

@alexott alexott commented Sep 28, 2024

Changes

When creating an online table from the big Delta table, waiting for full sync could take too long time, and creation timeouts. The new no_wait flag allows to skip wait for online table creation.

It would be useful to merge #4048 as well

Tests

  • make test run locally
  • relevant change in docs/ folder
  • covered with integration tests in internal/acceptance
  • relevant acceptance tests are passing
  • using Go SDK

When creating an online table from the big Delta table, waiting for full sync could take
too long time, and creation timeouts. The new `no_wait` flag allows to skip wait for
online table creation.
@alexott alexott requested review from a team as code owners September 28, 2024 10:38
@alexott alexott requested review from parthban-db and tanmay-db and removed request for a team September 28, 2024 10:38
@@ -64,6 +65,16 @@ func ResourceOnlineTable() common.Resource {
runTypes := []string{"spec.0.run_triggered", "spec.0.run_continuously"}
common.CustomizeSchemaPath(m, "spec", "run_triggered").SetAtLeastOneOf(runTypes).SetSuppressDiff()
common.CustomizeSchemaPath(m, "spec", "run_continuously").SetAtLeastOneOf(runTypes).SetSuppressDiff()

m["no_wait"] = &schema.Schema{
Copy link
Contributor

Choose a reason for hiding this comment

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

Curious -- how useful would this be? My understanding is that it would fail most of the times if waiting for online table creation takes a few minutes. But if this helps some use cases, then I think it might be helpful to have this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I need to retest - we have a recent change when the product team added a native wait functionality, but it's not clear how much time we'll still spend on waiting

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