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

Tests: allow overlay to work automatically in loopback mode #3669

Merged

Conversation

marta-lokhova
Copy link
Contributor

No description provided.

@@ -116,14 +117,26 @@ Simulation::addNode(SecretKey nodeKey, SCPQuorumSet qSet, Config const* cfg2,
Application::pointer app;
if (newDB)
{
app = Application::create(*clock, *cfg, newDB);
if (mMode == OVER_LOOPBACK)
Copy link
Contributor

Choose a reason for hiding this comment

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

There might be something wrong.
with this change, "peer discovery" should work in loopback mode, right?

As a consequence, I would expect a need to disable this new behavior when testing specific properties:
I see that tests such as "herder externalizes values" rely on specific network topologies as to halt the network.

I know flooding tests also want to test what happens over various topologies; that said, those tests are also testing using TCP -- so maybe there is something else I am missing (or that's a bug in the flood tests that we don't disable peer discovery)?

Copy link
Contributor Author

@marta-lokhova marta-lokhova Feb 27, 2023

Choose a reason for hiding this comment

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

By default, RUN_STANDALONE in tests is true, which means we won't start the overlay manager. To enable peer discovery, that flag needs to be disabled manually. (I tested the new behavior with "disconnected topology recovery" test, which actually wasn't working correctly before, as it was trying to run OverlayManager while in loopback mode).

@MonsieurNicolas
Copy link
Contributor

r+ 72909ef

@latobarita latobarita merged commit 238ddf6 into stellar:master Mar 3, 2023
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.

3 participants