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

Test: Revert "Refactor connection.rs to make fail_with errors impossible" #1803

Merged
merged 13 commits into from
Feb 24, 2021

Conversation

teor2345
Copy link
Contributor

@teor2345 teor2345 commented Feb 23, 2021

@teor2345
Copy link
Contributor Author

Testnet took a few hours to sync, mainnet is about 60% there and making steady progress. So it seems like this PR is causing the regression in #1801.

That's sad, because I really liked this refactor.

@teor2345 teor2345 requested a review from yaahc February 24, 2021 07:04
@teor2345 teor2345 added A-rust Area: Updates to Rust code C-bug Category: This is a bug I-hang A Zebra component stops responding to requests I-slow Problems with performance or responsiveness P-High labels Feb 24, 2021
@teor2345 teor2345 added this to the 2021 Sprint 4 milestone Feb 24, 2021
@teor2345 teor2345 marked this pull request as ready for review February 24, 2021 07:07
@yaahc yaahc merged commit 78f1627 into main Feb 24, 2021
@yaahc yaahc deleted the revert-1721-jane/fail-with branch February 24, 2021 21:07
@teor2345
Copy link
Contributor Author

The sync finished in about 4 hours, and it only required 3 block locators to sync to tip.
(Before this revert, there was an error in almost every extend_tips.)

$ cat ~/.cache/zebra-log/zebrad-mainnet-tmp-2021-02-24-14-26-29.log | grep 'created block locator' | cut -d' ' -f1-12 | sed 's/:sync:obtain_tips:state: zebra_state::util://'
Feb 24 14:26:49.649  INFO {zebrad="d5fe566d" net="Main"} created block locator tip_height=Height(0)
Feb 24 14:56:23.928  INFO {zebrad="d5fe566d" net="Main"} created block locator tip_height=Height(106703)
Feb 24 15:00:21.611  INFO {zebrad="d5fe566d" net="Main"} created block locator tip_height=Height(108873)
Feb 24 18:48:21.532  INFO {zebrad="d5fe566d" net="Main"} created block locator tip_height=Height(1158491)
Feb 24 18:49:28.536  INFO {zebrad="d5fe566d" net="Main"} created block locator tip_height=Height(1158493)
...

@teor2345
Copy link
Contributor Author

Closes #1801

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rust Area: Updates to Rust code C-bug Category: This is a bug I-hang A Zebra component stops responding to requests I-slow Problems with performance or responsiveness
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zebra full mainnet sync is very slow or hangs
2 participants