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

Wait for bootstrap better, with fixup #14

Merged

Conversation

Labels
None yet
Projects
None yet
3 participants
@teor2345
Copy link
Contributor

@teor2345 teor2345 commented Mar 18, 2019

No description provided.

nmathewson and others added 7 commits Mar 13, 2019
The regex was almost right, but it required a space after the
percent symbol. In reality, this space should only be there when
there is a keyword following.

Part of 22132.
Previously, if you said wait_for_bootstrap, it would tell you if a
node wasn't bootstrapped, but wouldn't help you notice whether it
was crashed or running.
This tweak makes us capture _only_ the status keyword, rather than
the keyword plus its surrounding parentheses and space.
Two problems here:
   - The node status that we report on failure was not the same as
     the most recent status that we checked.  This meant that we
     could declare that we weren't bootstrapped, while declaring
     that every node was bootstrapped

   - In addition to sleeping between the bootstrap checks, we also
     slept after our final bootstrap check.  This would increase
     the likelihood of hitting the first bug above.
@torproject-pusher torproject-pusher merged commit 3f349e9 into torproject:master Mar 19, 2019
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment