Skip to content
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

Fix BatchSemaphore bug causing deadlocks #167

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

jorajeev
Copy link
Member

@jorajeev jorajeev commented Dec 3, 2024

This PR fixes a bug in BatchSemaphore that caused deadlocks in the presence of tasks that gave up waiting for requested permits, under the policy of strict fairness.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

src/future/batch_semaphore.rs Outdated Show resolved Hide resolved
src/future/batch_semaphore.rs Outdated Show resolved Hide resolved
src/future/batch_semaphore.rs Outdated Show resolved Hide resolved
src/future/batch_semaphore.rs Outdated Show resolved Hide resolved
src/future/batch_semaphore.rs Show resolved Hide resolved
tests/future/batch_semaphore.rs Outdated Show resolved Hide resolved
tests/future/batch_semaphore.rs Outdated Show resolved Hide resolved
tests/future/batch_semaphore.rs Outdated Show resolved Hide resolved
@jorajeev jorajeev force-pushed the batch-semaphore-drop-fix branch 2 times, most recently from 05b1f82 to 370c74d Compare December 4, 2024 00:39
…ocks in the presence of tasks that gave up waiting for requested permits, under the policy of strict fairness.

---------

Co-authored-by: Sarek Høverstad Skotåm <sarek.skotam@gmail.com>
@jorajeev jorajeev force-pushed the batch-semaphore-drop-fix branch from 370c74d to 0a4f0bb Compare December 5, 2024 20:57
Copy link
Contributor

@sarsko sarsko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good to me!

@sarsko sarsko enabled auto-merge (squash) December 5, 2024 21:32
@sarsko sarsko merged commit b77c209 into awslabs:main Dec 5, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants