Revert "Increase the number of unique bits for actors to avoid handle collisions (#12894)" (#12988)

This reverts commit 3e492a79ec.
This commit is contained in:
Eric Liang
2020-12-18 23:51:44 -08:00
committed by GitHub
parent a092433bc8
commit 5d987f5988
19 changed files with 54 additions and 54 deletions
@@ -112,16 +112,20 @@ def test_memory_table(disable_aiohttp_cache, ray_start_with_dashboard):
def check_mem_table():
resp = requests.get(f"{webui_url}/memory/memory_table")
resp_data = resp.json()
assert resp_data["result"]
if not resp_data["result"]:
return False
latest_memory_table = resp_data["data"]["memoryTable"]
summary = latest_memory_table["summary"]
# 1 ref per handle and per object the actor has a ref to
assert summary["totalActorHandles"] == len(actors) * 2
# 1 ref for my_obj
assert summary["totalLocalRefCount"] == 1
try:
# 1 ref per handle and per object the actor has a ref to
assert summary["totalActorHandles"] == len(actors) * 2
# 1 ref for my_obj
assert summary["totalLocalRefCount"] == 1
return True
except AssertionError:
return False
wait_until_succeeded_without_exception(
check_mem_table, (AssertionError, ), timeout_ms=1000)
wait_for_condition(check_mem_table, 10)
def test_get_all_node_details(disable_aiohttp_cache, ray_start_with_dashboard):