-
Notifications
You must be signed in to change notification settings - Fork 200
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
More nil checking in InsertReceiptChain #2036
Conversation
Coverage from tests in coverage: 49.3% of statements across all listed packagescoverage: 63.0% of statements in consensus/istanbul coverage: 40.1% of statements in consensus/istanbul/announce coverage: 54.8% of statements in consensus/istanbul/backend coverage: 0.0% of statements in consensus/istanbul/backend/backendtest coverage: 24.3% of statements in consensus/istanbul/backend/internal/replica coverage: 63.3% of statements in consensus/istanbul/core coverage: 45.0% of statements in consensus/istanbul/db coverage: 0.0% of statements in consensus/istanbul/proxy coverage: 64.4% of statements in consensus/istanbul/uptime coverage: 51.8% of statements in consensus/istanbul/validator coverage: 79.2% of statements in consensus/istanbul/validator/randomCommentID: 43f4952ca7 |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2036 +/- ##
==========================================
- Coverage 54.82% 54.23% -0.60%
==========================================
Files 688 692 +4
Lines 92542 115463 +22921
==========================================
+ Hits 50737 62621 +11884
- Misses 37993 49012 +11019
- Partials 3812 3830 +18
... and 610 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
@karlb The upstream geth issues doesn't have a clear solution, did you check what solved it for them? |
I don't think they know what solved the issue, the issue is just closed as stale. That part of the code has been changed significantly, so there is no trivial way to cherry-pick a change in either direction. |
So the idea is to add the check and see if it happens again? Maybe we should add some log message then... |
Unless anyone has a good idea on how to reproduce or explain this, yes. Anything is better than a segfault. Well, anything but a corrupted state, but since we exit the function at a pretty sane point, I think we are safe here.
Yes, good idea. |
8fd35f9
to
9546b30
Compare
Coverage from tests in coverage: 50.7% of statements across all listed packagescoverage: 63.4% of statements in consensus/istanbul coverage: 40.1% of statements in consensus/istanbul/announce coverage: 54.7% of statements in consensus/istanbul/backend coverage: 0.0% of statements in consensus/istanbul/backend/backendtest coverage: 24.3% of statements in consensus/istanbul/backend/internal/replica coverage: 68.5% of statements in consensus/istanbul/core coverage: 45.0% of statements in consensus/istanbul/db coverage: 0.0% of statements in consensus/istanbul/proxy coverage: 64.4% of statements in consensus/istanbul/uptime coverage: 51.8% of statements in consensus/istanbul/validator coverage: 79.2% of statements in consensus/istanbul/validator/random |
9546b30
to
e343bf3
Compare
Fixes #1920
This just applies the change suggested in the issue. It seems reasonable and passed the tests, but I don't understand which situation would cause nil return values, yet.