mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 07:07:00 +08:00
Introduce set data structure in GCS (#4199)
* Introduce set data structure in GCS. Change object table to Set instance. * Fix a logic bug. Update python code. * lint * lint again * Remove CURRENT_VALUE mode * Remove 'CURRENT_VALUE' * Add more test cases * rename has_been_created to subscribed. * Make `changed` parameter type of `bool *` * Rename mode to notification_mode * fix build * RAY.SET_REMOVE return error if entry doesn't exist * lint * Address comments * lint and fix build
This commit is contained in:
@@ -2505,10 +2505,6 @@ def test_global_state_api(shutdown_only):
|
||||
object_table = ray.global_state.object_table()
|
||||
assert len(object_table) == 2
|
||||
|
||||
assert object_table[x_id]["IsEviction"][0] is False
|
||||
|
||||
assert object_table[result_id]["IsEviction"][0] is False
|
||||
|
||||
assert object_table[x_id] == ray.global_state.object_table(x_id)
|
||||
object_table_entry = ray.global_state.object_table(result_id)
|
||||
assert object_table[result_id] == object_table_entry
|
||||
|
||||
Reference in New Issue
Block a user