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

[ISSUE] Editing TERMINATED state compute clusters throws an error #286

Open
q-thomaseastgate opened this issue May 9, 2024 · 0 comments

Comments

@q-thomaseastgate
Copy link

Description
The description of the edit method of the ClustersAPI (https://github.com/databricks/databricks-sdk-java/blob/main/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ClustersAPI.java#L219) claims that it is able to edit TERMINATED state clusters. This works, as the cluster is indeed edited, but the edit method then tries to wait for the cluster to start running with waitGetClusterRunning, even though nothing has tried to start the cluster, and it is still in the TERMINATED state. This throws an error along the lines of: "Error encountered when editing cluster '<CLUSTER_NAME>'. Cause: failed to reach RUNNING, got TERMINATED: Termination requested by <TERMINATION_REQUEST_AUTHOR>".

Reproduction
Use the edit cluster ClustersAPI method on a TERMINATED cluster.

Expected behavior
The method should not throw an error when a TERMINATED cluster is edited, returning the relevant ClusterDetails instead.

Is it a regression?
I haven't tried other versions

Debug Logs
None

Other Information

  • Confirmed on Version: 0.23.0
    Although this seems to still be present on main

Additional context
None

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

No branches or pull requests

1 participant