Skip to content

Peer discovery core logic rewrite follow-up improvements #10073

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

Merged
merged 4 commits into from
Dec 8, 2023

Conversation

dumbbell
Copy link
Collaborator

@dumbbell dumbbell commented Dec 8, 2023

This is a collection of improvements from @lukebakken. He submitted a review to #9797 seconds after I merged the branch. This pull request should address all his feedback.

Thank you @lukebakken!

[Why]
They both can be useful to diagnose before debug messages are enabled.

Also, the second message tells to enable debug messages to get more
details, but it was logged at the debug level :-)

Follow up to #9797.

Submitted by: @lukebakken
[Why]
We start a temporary hidden node, then ask it to execute some code, then
stop it. But if there is an execution in between, we leave the
temporary hidden node running.

Likewise when we mess with the group leader: if the function executed
after overriding the group leader temporarily raises an exception, the
group leader becomes permanent and we may miss log messages.

[How]
We simply use a try/after block to ensure the temporary things are
reverted at the end, regardless of the success or failure.

Follow up to #9797.

Submitted by: @lukebakken
… leader

... to exit.

[How]
It should never be stuck obviously™. But in case planets are not
aligned, we wait for its exit with a timeout. If it stays around, this
is not the end of the world.

Follow up to #9797.

Submitted by: @lukebakken
@dumbbell dumbbell added this to the 3.13.0 milestone Dec 8, 2023
@dumbbell dumbbell requested a review from lukebakken December 8, 2023 09:43
@dumbbell dumbbell self-assigned this Dec 8, 2023
@dumbbell dumbbell changed the title Peer discovery followup improvements Peer discovery core logic rewrite follow-up improvements Dec 8, 2023
@dumbbell dumbbell marked this pull request as ready for review December 8, 2023 12:03
Copy link
Collaborator

@lukebakken lukebakken left a comment

Choose a reason for hiding this comment

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

Thanks!

@michaelklishin michaelklishin merged commit f53e504 into main Dec 8, 2023
@michaelklishin michaelklishin deleted the peer-discovery-followup-improvements branch December 8, 2023 14:19
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