[WIP][SPARK-54986][PYTHON][ML][CONNECT] Disable reattachable in _delete_ml_cache#53749
Closed
zhengruifeng wants to merge 3 commits intoapache:masterfrom
Closed
[WIP][SPARK-54986][PYTHON][ML][CONNECT] Disable reattachable in _delete_ml_cache#53749zhengruifeng wants to merge 3 commits intoapache:masterfrom
_delete_ml_cache#53749zhengruifeng wants to merge 3 commits intoapache:masterfrom
Conversation
JIRA Issue Information=== Improvement SPARK-54986 === This comment was automatically generated by GitHub Actions |
zhengruifeng
commented
Jan 9, 2026
| if len(cache_ids) > 0: | ||
| def _delete_ml_cache(self, cache_ids: List[str], evict_only: bool = False) -> None: | ||
| if len(cache_ids) > 0: | ||
| try: |
Contributor
Author
There was a problem hiding this comment.
it doesn't matter too much even if this command fails
zhengruifeng
commented
Jan 9, 2026
| [pb2.ObjectRef(id=cache_id) for cache_id in cache_ids] | ||
| ) | ||
| command.ml_command.delete.evict_only = evict_only | ||
| (_, properties, _) = self.execute_command(command) |
Contributor
Author
There was a problem hiding this comment.
execute_command is baed on reattachable execution
_delete_ml_cache_delete_ml_cache
ce8bf2f to
9039932
Compare
_delete_ml_cache_delete_ml_cache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Do not retry
_delete_ml_cacheand set a timeoutWhy are the changes needed?
the
test_parity_clusteringstill hangs, even though the probabality is much lower than beforeThe all threads dumps https://github.com/gaogaotiantian/spark/actions/runs/20841838810/job/59877763802
shows it get stuck at
_delete_ml_cachelooks like there is still a dead lock in grpc on python side
The
ReleaseExecutein thread 24397 is for retry/reattachspark/python/pyspark/sql/connect/client/reattach.py
Lines 39 to 57 in d2cc107
It is not clear how it affect the
_delete_ml_cache, but command_delete_ml_cacheitself doesn't need retry, so I rewrite it without retry and set a timeout=3 sec.Does this PR introduce any user-facing change?
No
How was this patch tested?
Will monitor the CI
Was this patch authored or co-authored using generative AI tooling?
No