-
Notifications
You must be signed in to change notification settings - Fork 2.3k
connpool: Fix handling of expired contexts #18728
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Arthur Schreiber <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #18728 +/- ##
==========================================
- Coverage 67.50% 67.50% -0.01%
==========================================
Files 1606 1605 -1
Lines 263773 263753 -20
==========================================
- Hits 178048 178034 -14
+ Misses 85725 85719 -6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
If no action is taken within 7 days, this PR will be closed. |
|
This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
If no action is taken within 7 days, this PR will be closed. |
|
This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
If no action is taken within 7 days, this PR will be closed. |
Description
When a context expires, the function that received the context should either return the cause of the expiration (via
context.Cause) or wrap the cause of the expiration with a different error (to enrich the error information).*ConnPool[C].Getdid not follow these guidelines. If it was called with an expired context, it would returnErrCtxTimeoutinstead of the cause of the context expiration, and if the context expired while waiting for a connection, it would returnErrTimeout.Related Issue(s)
N/A
Checklist
Deployment Notes
AI Disclosure