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(core/oio): Make ConcurrentTasks cancel safe by only pop after ready #4707

Merged
merged 2 commits into from
Jun 7, 2024

Conversation

Xuanwo
Copy link
Member

@Xuanwo Xuanwo commented Jun 7, 2024

ConcurrentTasks is not cancel safe since it will change states when poll returns Pending. This PR fixed this by only pop task after it returns ready.

@Xuanwo Xuanwo merged commit 38aa4bb into main Jun 7, 2024
248 checks passed
@Xuanwo Xuanwo deleted the fix-cancelsafe branch June 7, 2024 11:23
Xuanwo added a commit to Xuanwo/opendal that referenced this pull request Jun 7, 2024
…dy (apache#4707)

* fix(core/oio): Make ConcurrentTasks cancel safe by only pop after ready

Signed-off-by: Xuanwo <[email protected]>

* add part numbers check

Signed-off-by: Xuanwo <[email protected]>

---------

Signed-off-by: Xuanwo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants