Skip to content

Fix ThreadPerTaskScheduler busyness accounting#3859

Merged
chemicL merged 2 commits into3.6.xfrom
fix-virtual-threads-concurrency
Aug 1, 2024
Merged

Fix ThreadPerTaskScheduler busyness accounting#3859
chemicL merged 2 commits into3.6.xfrom
fix-virtual-threads-concurrency

Conversation

@chemicL
Copy link
Copy Markdown
Member

@chemicL chemicL commented Aug 1, 2024

This change prevents the same BoundedElasticThreadPerTaskScheduler being picked up when the maximum number of Virtual Threads are already being executed in parallel. The consequence of improper busyness accounting was that tasks were executed sequentially instead of being run in parallel because the same Worker was being picked by operators.

Resolves #3857

This change prevents the same `BoundedElasticThreadPerTaskScheduler` being
picked up when the maximum number of Virtual Threads are already being
executed in parallel. The consequence of improper busyness accounting
was that tasks were executed sequentially instead of being run in
parallel because the same `Worker` was being picked by operators.

Resolves #3857
@chemicL chemicL added the type/bug A general bug label Aug 1, 2024
@chemicL chemicL added this to the 3.6.9 milestone Aug 1, 2024
@chemicL chemicL self-assigned this Aug 1, 2024
@chemicL chemicL requested a review from a team as a code owner August 1, 2024 14:01
@chemicL chemicL merged commit bcab229 into 3.6.x Aug 1, 2024
@chemicL chemicL deleted the fix-virtual-threads-concurrency branch August 1, 2024 14:22
chemicL added a commit that referenced this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant