You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 theedit
method then tries to wait for the cluster to start running withwaitGetClusterRunning
, 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
Although this seems to still be present on main
Additional context
None
The text was updated successfully, but these errors were encountered: