Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IceGrid/activation test fixes #3452

Merged
merged 2 commits into from
Jan 30, 2025
Merged

IceGrid/activation test fixes #3452

merged 2 commits into from
Jan 30, 2025

Conversation

pepone
Copy link
Member

@pepone pepone commented Jan 30, 2025

Fix #3447

}
catch (const Ice::NoEndpointException&)
{
this_thread::sleep_for(chrono::milliseconds(500));
continue;
}
}
test(admin->isServerEnabled("server2"));
waitForServerState(admin, "server2", IceGrid::ServerState::Active);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the previous code, we can exit the loop after getting NoEndpointException if the server just get enabled before we send the next ice_ping request.

In this situation waitForServerState would hang as there is no request activating the server.

}
}
test(admin->isServerEnabled("server2"));
waitForServerState(admin, "server2", IceGrid::ServerState::Active);
obj->ice_ping();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ice_ping request after the server is already activate and before is stopped doesn't make sense. Maybe it was mean to be done before the waitForServerState.

@pepone pepone changed the title IceGrid/activation test fix for #3447 IceGrid/activation test fixes Jan 30, 2025
}
catch (const Ice::NoEndpointException&)
{
this_thread::sleep_for(chrono::milliseconds(500));
continue;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this continue necessary?

Copy link
Member Author

@pepone pepone Jan 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. we can remove it.

@pepone pepone merged commit af9b80e into zeroc-ice:main Jan 30, 2025
20 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IceGrid/activation failure on macOS
3 participants