[Placement Group] [Test] Fix pg.ready hang forever when gcs restarting (#20063)

* fixed

* lint

* fix comment

* revert previous fix code
This commit is contained in:
DK.Pino 2021-11-10 16:53:42 +08:00 committed by GitHub
parent 507bd9186b
commit 2c41936a39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -36,9 +36,6 @@ def get_ray_status_output(address):
}
@pytest.mark.skip(
reason=("Flaky in the master. The feature is not officially "
"supported yet, so we just disable it."))
@pytest.mark.parametrize(
"ray_start_cluster_head", [
generate_system_config_map(

View file

@ -409,6 +409,9 @@ ray::Status NodeManager::RegisterGcs() {
const auto &resources_changed =
[this](const rpc::NodeResourceChange &resource_notification) {
auto id = NodeID::FromBinary(resource_notification.node_id());
if (id == self_node_id_) {
return;
}
if (resource_notification.updated_resources_size() != 0) {
ResourceSet resource_set(
MapFromProtobuf(resource_notification.updated_resources()));