Skip to content

[Core] Ignore worker lease requests from dead caller - #43920

Merged
jjyao merged 3 commits into
ray-project:masterfrom
jjyao:jjyao/owner
Mar 13, 2024
Merged

jjyao merged 3 commits into
ray-project:masterfrom
jjyao:jjyao/owner

Conversation

@jjyao

@jjyao jjyao commented Mar 12, 2024

Copy link
Copy Markdown
Contributor

Why are these changes needed?

Currently we clear all the pending lease requests when raylet receives the worker death notification. However if the lease request comes in after the notification (CoreWorker calls Disconnect and then Shutdown, the worker death notification happen after Disconnect but at that time there can be in-flight lease requests to the raylet), the lease request won't have chance to be cleared. This PR fixes this by ignoring those lease requests.

Related issue number

Closes #43687

Checks

Comment thread python/ray/tests/test_node_manager.py Resolved
jjyao added 2 commits March 12, 2024 13:40
Signed-off-by: Jiajun Yao <[email protected]>
Signed-off-by: Jiajun Yao <[email protected]>
@jjyao
jjyao merged commit 9fe19b1 into ray-project:master Mar 13, 2024
@jjyao
jjyao deleted the jjyao/owner branch March 13, 2024 04:08
jjyao added a commit that referenced this pull request Mar 13, 2024
Currently we clear all the pending lease requests when raylet receives the worker death notification. However if the lease request comes in after the notification (CoreWorker calls Disconnect and then Shutdown, the worker death notification happen after Disconnect but at that time there can be in-flight lease requests to the raylet), the lease request won't have chance to be cleared. This PR fixes this by ignoring those lease requests.

Signed-off-by: Jiajun Yao <[email protected]>
khluu pushed a commit that referenced this pull request Mar 13, 2024
Cherry pick #43920

Currently we clear all the pending lease requests when raylet receives the worker death notification. However if the lease request comes in after the notification (CoreWorker calls Disconnect and then Shutdown, the worker death notification happen after Disconnect but at that time there can be in-flight lease requests to the raylet), the lease request won't have chance to be cleared. This PR fixes this by ignoring those lease requests.

Signed-off-by: Jiajun Yao <[email protected]>
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.

[core] resource leak from pending tasks on Client exit

2 participants