Open
Conversation
This was referenced Oct 29, 2024
abonander
commented
Oct 29, 2024
svix-jplatte
reviewed
Nov 8, 2024
8420b43 to
d671b98
Compare
d671b98 to
656e751
Compare
d500c21 to
2be94a9
Compare
2be94a9 to
c58291b
Compare
Contributor
|
Just tested this with #2805 and this PR seems to fix that issue 🎉 |
Collaborator
Author
Contributor
|
Yup, pretty sure it's not flaky. If I test with If I run it with the |
Contributor
|
The only reason I even checked is this item in your list above:
|
Contributor
|
It's perfectly possible that this PR doesn't fix all races that can lead to the issue in #2805, but it seems to have at least fixed the race that the reproducer is triggering. |
b6d4757 to
7bb8521
Compare
97c3af6 to
0dd92b4
Compare
This was referenced Jan 17, 2026
Merged
0baa295 to
53ad46f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
acquire()call is cancelled.acquire()should now be completely cancel-safe.PoolConnectortrait superceding bothbefore_connect(requested but not yet implemented) andafter_connectcallbacks.Future, albeit with a'staticrequirement for the returnedFuture(instead ofBoxFuture).usizefor all connection counts to get rid of weird inconsistencies.Breaking Changes
Pool::set_connect_options()andget_connect_options()have been removed. Instead, implement the newPoolConnectortrait (or use a closure) using something likeArc<RwLock<impl ConnectOptions>>.PoolOptions::after_connect()has been removed. Instead, implementPoolConnector(or use a closure), open a connection and then apply any operations necessary.PoolOptions::min_connections(),PoolOptions::max_connections()andPool::size()now useusizeinstead ofu32.Fixes #3513
Fixes #3315
Fixes #3132
Fixes #3117
Fixes #2848