-
Notifications
You must be signed in to change notification settings - Fork 262
fix(spark): clean up session and port-forward on failure #779
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -632,7 +632,7 @@ def get_spark_connect_info_from_cr( | |||||
| try: | ||||||
| state = SparkConnectState(spark_connect_cr.status.state) | ||||||
| except ValueError: | ||||||
| state = SparkConnectState.PROVISIONING | ||||||
| state = SparkConnectState(common_constants.UNKNOWN) | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| # Extract server status | ||||||
| server_status = None | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,9 +29,9 @@ class SparkConnectState(str, Enum): | |
|
|
||
| PROVISIONING = "Provisioning" | ||
| READY = "Ready" | ||
| RUNNING = "Running" # Operator may set this when server is up; treated as ready | ||
| NOT_READY = "NotReady" | ||
| FAILED = "Failed" | ||
| UNKNOWN = "Unknown" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be removed.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove |
||
|
|
||
|
|
||
| @dataclass | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
RUNNINGstate should be removed.