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

trie: minimize wait-time when exiting syncbloom #23020

Merged
merged 2 commits into from
Jun 30, 2021

Conversation

holiman
Copy link
Contributor

@holiman holiman commented Jun 8, 2021

Some tests take quite some time during exit, which I think causes some appveyor fails like this: https://ci.appveyor.com/project/ethereum/go-ethereum/builds/39511210/job/xhom84eg2e4uulq3

One of the things that seem to take time during exit is waiting for (up to 100ms) for the syncbloom to close. This PR changes it to use a channel, instead of looping with a 100ms wait.

On master:

[user@work eth]$ go test . -run TestTransactionPropagation66 --count 5
ok      github.com/ethereum/go-ethereum/eth     7.414s
[user@work eth]$ go test . -run TestTransactionPropagation66 --count 5
ok      github.com/ethereum/go-ethereum/eth     8.026s
[user@work eth]$ go test . -run TestTransactionPropagation66 --count 5
ok      github.com/ethereum/go-ethereum/eth     7.763s

On this PR:

[user@work eth]$ go test . -run TestTransactionPropagation66 --count 5
ok      github.com/ethereum/go-ethereum/eth     3.423s
[user@work eth]$ go test . -run TestTransactionPropagation66 --count 5
ok      github.com/ethereum/go-ethereum/eth     3.331s
[user@work eth]$ go test . -run TestTransactionPropagation66 --count 5
ok      github.com/ethereum/go-ethereum/eth     3.330s

@fjl fjl merged commit c131e81 into ethereum:master Jun 30, 2021
@fjl fjl added this to the 1.10.5 milestone Jun 30, 2021
sidhujag pushed a commit to sidhujag/go-ethereum that referenced this pull request Jul 1, 2021
Some tests take quite some time during exit, which I think causes
some appveyor fails like this:

    https://ci.appveyor.com/project/ethereum/go-ethereum/builds/39511210/job/xhom84eg2e4uulq3

One of the things that seem to take time during exit is waiting
(up to 100ms) for the syncbloom to close. This PR changes it to use
a channel, instead of looping with a 100ms wait.

This also includes some unrelated changes improving the reliability of
eth/fetcher tests, which fail a lot because they are time-dependent.
atif-konasl pushed a commit to frozeman/pandora-execution-engine that referenced this pull request Oct 15, 2021
Some tests take quite some time during exit, which I think causes
some appveyor fails like this:

    https://ci.appveyor.com/project/ethereum/go-ethereum/builds/39511210/job/xhom84eg2e4uulq3

One of the things that seem to take time during exit is waiting
(up to 100ms) for the syncbloom to close. This PR changes it to use
a channel, instead of looping with a 100ms wait.

This also includes some unrelated changes improving the reliability of
eth/fetcher tests, which fail a lot because they are time-dependent.
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.

2 participants