mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 12:02:04 +08:00
Fix leased worker leak bug if lease worker requests that are still waiting to be scheduled when GCS restarts (#9719)
This commit is contained in:
@@ -22,8 +22,12 @@ def increase(x):
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_GCS_ACTOR_SERVICE_ENABLED") != "true",
|
||||
os.environ.get("RAY_GCS_ACTOR_SERVICE_ENABLED", "true") != "true",
|
||||
reason=("This testcase can only be run when GCS actor management is on."))
|
||||
@pytest.mark.parametrize(
|
||||
"ray_start_regular",
|
||||
[generate_internal_config_map(num_heartbeats_timeout=20)],
|
||||
indirect=True)
|
||||
def test_gcs_server_restart(ray_start_regular):
|
||||
actor1 = Increase.remote()
|
||||
result = ray.get(actor1.method.remote(1))
|
||||
@@ -44,8 +48,12 @@ def test_gcs_server_restart(ray_start_regular):
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_GCS_ACTOR_SERVICE_ENABLED") != "true",
|
||||
os.environ.get("RAY_GCS_ACTOR_SERVICE_ENABLED", "true") != "true",
|
||||
reason=("This testcase can only be run when GCS actor management is on."))
|
||||
@pytest.mark.parametrize(
|
||||
"ray_start_regular",
|
||||
[generate_internal_config_map(num_heartbeats_timeout=20)],
|
||||
indirect=True)
|
||||
def test_gcs_server_restart_during_actor_creation(ray_start_regular):
|
||||
ids = []
|
||||
for i in range(0, 100):
|
||||
@@ -62,7 +70,7 @@ def test_gcs_server_restart_during_actor_creation(ray_start_regular):
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_GCS_ACTOR_SERVICE_ENABLED") != "true",
|
||||
os.environ.get("RAY_GCS_ACTOR_SERVICE_ENABLED", "true") != "true",
|
||||
reason=("This testcase can only be run when GCS actor management is on."))
|
||||
@pytest.mark.parametrize(
|
||||
"ray_start_cluster_head",
|
||||
|
||||
Reference in New Issue
Block a user