-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
[core] When reconstruction is enabled, pin objects created by ray.put() #8021
[core] When reconstruction is enabled, pin objects created by ray.put() #8021
Conversation
Can one of the admins verify this patch? |
Test FAILed. |
Test PASSed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Why are these changes needed?
When lineage reconstruction is enabled, Ray will attempt to recreate objects that were stored in plasma and lost due to a failure through task re-execution. However, this will not work if the task depends on an object created by
ray.put
, since the caller would also have to be restarted.This PR pins objects that are created by
ray.put
so that they will not be evicted until all downstream tasks can not be executed again. This guarantees that the object value will be available if lineage reconstruction is needed.Checks
scripts/format.sh
to lint the changes in this PR.