Skip to content

[core] Fix bugs in data locality (#24698)#25092

Merged
stephanie-wang merged 6 commits intoray-project:masterfrom
stephanie-wang:revert-25035
May 25, 2022
Merged

[core] Fix bugs in data locality (#24698)#25092
stephanie-wang merged 6 commits intoray-project:masterfrom
stephanie-wang:revert-25035

Conversation

@stephanie-wang
Copy link
Copy Markdown
Contributor

@stephanie-wang stephanie-wang commented May 23, 2022

Why are these changes needed?

Redo for PR #24698:

This fixes two bugs in data locality:

  • When a dependent task is already in the CoreWorker's queue, we ran the data locality policy to choose a raylet before we added the first location for the dependency, so it would appear as if the dependency was not available anywhere.
  • The locality policy did not take into account spilled locations.

Added C++ unit tests and Python tests for the above.

Split test_reconstruction to avoid test timeout. I believe this was happening because the data locality fix was causing extra scheduler load in a couple of the reconstruction stress tests.

Copy link
Copy Markdown
Member

@mwtian mwtian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to add python/ray/tests/test_reconstruction_2.py to a build target, e.g. large_size_python_tests_shard_0

@stephanie-wang stephanie-wang merged commit 5cee613 into ray-project:master May 25, 2022
@stephanie-wang stephanie-wang deleted the revert-25035 branch May 25, 2022 20:34
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.

3 participants