-
Notifications
You must be signed in to change notification settings - Fork 107
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
Full sync with logging for very slow state block commits #4952
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
2a3de1c
to
943fc89
Compare
Codecov Report
@@ Coverage Diff @@
## main #4952 +/- ##
==========================================
+ Coverage 79.20% 79.21% +0.01%
==========================================
Files 310 310
Lines 38883 39073 +190
==========================================
+ Hits 30796 30952 +156
- Misses 8087 8121 +34 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good for sure but i dont think we should be merging this things into the main branch.
This seems more suitable for a local test or for a specific branch outside main.
Unfortunately, I can't reproduce this issue on my local machine, so I need to add this debugging to the |
Sorry, still dont understand why you need to add it to the main branch. Can't you run the CI without merging ? |
I'm not sure if it will work, but I can try. I'll open a new PR to disable the logs for #4932, because that needs to go into |
943fc89
to
583f46e
Compare
I'm running a full sync here with these extra logs: |
@Mergifyio update |
✅ Branch has been successfully updated |
Let's try that full sync again, after the concurrency fixes in PR #5000: |
ae9a5c0
to
89c8cad
Compare
The logs I added didn't actually show any extra information, which is a bit of a surprise. It's possible we're just committing a large number of slow blocks at a time. I added some more logging and started another full sync: |
It appears that committing blocks hangs because we sometimes commit over 1000 blocks at the same time, then return the result to the state caller (checkpointer or non-finalized state block committer):
https://github.com/ZcashFoundation/zebra/runs/8147047219?check_suite_focus=true#step:6:165 I'll update ticket #4937 with the details. |
This PR has achieved its goals, but we'll need the extra logging to test any fixes. |
This PR was only used for testing slow block commits, we can re-open it if we need to re-test. |
Motivation
We want to find out which parts of state block commits are slow in CI, because we can't reproduce them locally.
These are diagnostics for ticket #4937, where some blocks take 15 minutes to write to the state.
Solution
Review
This PR doesn't need review.
Reviewer Checklist
Follow Up Work
Read the logs to work out why #4937 is happening