28b1f7710c87088bbb266a6a6c644c2e7c828805,python/ray/tests/test_failure.py,,test_connect_with_disconnected_node,#Any#,832

Before Change


    removing_node = cluster.add_node(num_cpus=0)
    cluster.remove_node(removing_node, allow_graceful=True)
    with pytest.raises(RayTestTimeoutException):
        wait_for_errors(ray_constants.REMOVED_NODE_ERROR, 3, timeout=2)
    // There is no connection error to a dead node.
    info = relevant_errors(ray_constants.RAYLET_CONNECTION_ERROR)
    assert len(info) == 0

After Change


    cluster = Cluster()
    cluster.add_node(num_cpus=0, _internal_config=config)
    ray.init(address=cluster.address)
    p = init_error_pubsub()
    errors = get_error_message(p, 1, timeout=5)
    assert len(errors) == 0
    // This node is killed by SIGKILL, ray_monitor will mark it to dead.
    dead_node = cluster.add_node(num_cpus=0)
    cluster.remove_node(dead_node, allow_graceful=False)
    errors = get_error_message(p, 1, ray_constants.REMOVED_NODE_ERROR)
    assert len(errors) == 1
    // This node is killed by SIGKILL, ray_monitor will mark it to dead.
    dead_node = cluster.add_node(num_cpus=0)
    cluster.remove_node(dead_node, allow_graceful=False)
    errors = get_error_message(p, 1, ray_constants.REMOVED_NODE_ERROR)
    assert len(errors) == 1
    // This node is killed by SIGTERM, ray_monitor will not mark it again.
    removing_node = cluster.add_node(num_cpus=0)
    cluster.remove_node(removing_node, allow_graceful=True)
    errors = get_error_message(p, 1, timeout=2)
    assert len(errors) == 0
    // There is no connection error to a dead node.
    errors = get_error_message(p, 1, timeout=2)
    assert len(errors) == 0
    p.close()


@pytest.mark.parametrize(
    "ray_start_cluster_head", [{
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: ray-project/ray
Commit Name: 28b1f7710c87088bbb266a6a6c644c2e7c828805
Time: 2020-08-03
Author: 2522134184@qq.com
File Name: python/ray/tests/test_failure.py
Class Name:
Method Name: test_connect_with_disconnected_node


Project Name: ray-project/ray
Commit Name: 28b1f7710c87088bbb266a6a6c644c2e7c828805
Time: 2020-08-03
Author: 2522134184@qq.com
File Name: python/ray/tests/test_failure.py
Class Name:
Method Name: test_warning_for_too_many_nested_tasks


Project Name: ray-project/ray
Commit Name: 28b1f7710c87088bbb266a6a6c644c2e7c828805
Time: 2020-08-03
Author: 2522134184@qq.com
File Name: python/ray/tests/test_failure.py
Class Name:
Method Name: test_connect_with_disconnected_node


Project Name: ray-project/ray
Commit Name: 28b1f7710c87088bbb266a6a6c644c2e7c828805
Time: 2020-08-03
Author: 2522134184@qq.com
File Name: python/ray/tests/test_failure.py
Class Name:
Method Name: test_warning_for_infeasible_zero_cpu_actor


Project Name: ray-project/ray
Commit Name: 28b1f7710c87088bbb266a6a6c644c2e7c828805
Time: 2020-08-03
Author: 2522134184@qq.com
File Name: python/ray/tests/test_failure.py
Class Name:
Method Name: test_warning_for_too_many_actors