-
Notifications
You must be signed in to change notification settings - Fork 68
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
Handle GRPC timeout error #883
Conversation
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
Codecov ReportBase: 74.16% // Head: 75.09% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #883 +/- ##
==========================================
+ Coverage 74.16% 75.09% +0.92%
==========================================
Files 29 16 -13
Lines 1827 1349 -478
Branches 339 254 -85
==========================================
- Hits 1355 1013 -342
+ Misses 374 269 -105
+ Partials 98 67 -31
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 at Codecov. |
# Conflicts: # .env.example
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
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.
LG, just some clean up and comment suggestions
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
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.
LG
TIER_1_RATE_LIMIT = 100 | ||
TIER_2_RATE_LIMIT = 800 | ||
TIER_3_RATE_LIMIT = 1600 | ||
DEFAULT_RATE_LIMIT = 400 |
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.
Why did we double everything here?
Maybe update the PR comments
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
LG
* feat: add grpc timeout config and error handling Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * chore: add new predefined errors Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * chore: add env var to helmchart configs Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * chore: increase rate limits Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * chore: increase rate limits Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * fix: add workaround for rare bug Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * chore: revert rate limit increase Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * nit: address comments Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * nit: address comment from a previous PR Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * nit: typo Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * chore: revert rate limits for acceptance tests Signed-off-by: Ivo Yankov <ivo@devlabs.bg> --------- Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
* feat: add grpc timeout config and error handling Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * chore: add new predefined errors Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * chore: add env var to helmchart configs Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * chore: increase rate limits Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * chore: increase rate limits Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * fix: add workaround for rare bug Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * chore: revert rate limit increase Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * nit: address comments Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * nit: address comment from a previous PR Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * nit: typo Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * chore: revert rate limits for acceptance tests Signed-off-by: Ivo Yankov <ivo@devlabs.bg> --------- Signed-off-by: Ivo Yankov <ivo@devlabs.bg> Signed-off-by: Nana Essilfie-Conduah <nana@swirldslabs.com>
Cherry pick PRs that went into main branch since cutting a 0.18.0-alpha1. PRs map to individual commits - [PR 882 - eth_feeHistory invalid cached response](#882) - [PR 887 - Needed changes for metrics improvements](#887) - [PR 883 - Handle GRPC timeout error](#883) - PR 898 - update-logs-and-metrics Added the requestId to the server context](#898) --------- Signed-off-by: ebadiere <ebadiere@gmail.com> Signed-off-by: Nana Essilfie-Conduah <nana@swirldslabs.com> --------- Signed-off-by: nikolay <n.atanasow94@gmail.com> Signed-off-by: Nana Essilfie-Conduah <nana@swirldslabs.com> Signed-off-by: Alfredo Gutierrez <alfredo@swirldslabs.com> Signed-off-by: Ivo Yankov <ivo@devlabs.bg> Signed-off-by: ebadiere <ebadiere@gmail.com> Co-authored-by: Nikolay Atanasow <n.atanasow94@gmail.com> Co-authored-by: Alfredo Gutierrez <alfredo@swirldslabs.com> Co-authored-by: Ivo Yankov <ivo@devlabs.bg> Co-authored-by: Eric Badiere <ebadiere@gmail.com>
* feat: add grpc timeout config and error handling Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * chore: add new predefined errors Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * chore: add env var to helmchart configs Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * chore: increase rate limits Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * chore: increase rate limits Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * fix: add workaround for rare bug Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * chore: revert rate limit increase Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * nit: address comments Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * nit: address comment from a previous PR Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * nit: typo Signed-off-by: Ivo Yankov <ivo@devlabs.bg> * chore: revert rate limits for acceptance tests Signed-off-by: Ivo Yankov <ivo@devlabs.bg> --------- Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
Description:
This PR aims to resolve several inconsistent errors that occur at times of increased load.
sdkClient._maxExecutionTime
.eth_getTransansactionByHash
andeth_getTransactionReceipt
.Related issue(s):
Fixes #874
Notes for reviewer:
Checklist