[PlacementGroup]Add guarded by in placement group scheduler ut#11306
[PlacementGroup]Add guarded by in placement group scheduler ut#11306rkooo567 merged 17 commits intoray-project:masterfrom
Conversation
src/ray/gcs/gcs_server/test/gcs_placement_group_scheduler_test.cc
Outdated
Show resolved
Hide resolved
src/ray/gcs/gcs_server/test/gcs_placement_group_scheduler_test.cc
Outdated
Show resolved
Hide resolved
|
@clay4444. Can you assign me to the "assignee" section instead? That's the formal process we are trying to use. |
rkooo567
left a comment
There was a problem hiding this comment.
Can you add GUARDED_BY to all vector attributes?
src/ray/gcs/gcs_server/test/gcs_placement_group_scheduler_test.cc
Outdated
Show resolved
Hide resolved
yes, I get it~ :) |
hi, @rkooo567 I don't quite understand the 'all vector attributes', do you mean all vector need add |
|
@clay4444 Yes! I didn't know the first vector wasn't used by other threads (I just assumed this lock should guard all the vector attributes based on the name "vector_lock"). The other vector is |
yes, the name "vector_lock" is confused indeed, do you think we need change it to "placement_groups_requests_lock_" or others ? |
|
SGTM :)! |
ok~ 😄 |
|
I’ll review it again by today |
yeah~ thank u :) |
src/ray/gcs/gcs_server/test/gcs_placement_group_scheduler_test.cc
Outdated
Show resolved
Hide resolved
src/ray/gcs/gcs_server/test/gcs_placement_group_scheduler_test.cc
Outdated
Show resolved
Hide resolved
src/ray/gcs/gcs_server/test/gcs_placement_group_scheduler_test.cc
Outdated
Show resolved
Hide resolved
src/ray/gcs/gcs_server/test/gcs_placement_group_scheduler_test.cc
Outdated
Show resolved
Hide resolved
src/ray/gcs/gcs_server/test/gcs_placement_group_scheduler_test.cc
Outdated
Show resolved
Hide resolved
|
Please add the |
ok~ |
Why are these changes needed?
add GUARDED_BY annotation for gcs scheduler ut.
Related issue number
Checks
scripts/format.shto lint the changes in this PR.