-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Dispose picked worker when BoundedElasticScheduler rejects task #3183
Dispose picked worker when BoundedElasticScheduler rejects task #3183
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution. Please consider targeting 3.4.x
branch as these changes are also applicable to the GA codebase. I left a few language related suggestions and a few pointers to improve the test.
reactor-core/src/test/java/reactor/core/scheduler/BoundedElasticSchedulerTest.java
Outdated
Show resolved
Hide resolved
reactor-core/src/test/java/reactor/core/scheduler/BoundedElasticSchedulerTest.java
Outdated
Show resolved
Hide resolved
reactor-core/src/test/java/reactor/core/scheduler/BoundedElasticSchedulerTest.java
Outdated
Show resolved
Hide resolved
Also, it might not be codified, but seems we're using the style of
vs
as the first one looks cleaner. |
reactor-core/src/main/java/reactor/core/scheduler/BoundedElasticScheduler.java
Outdated
Show resolved
Hide resolved
reactor-core/src/main/java/reactor/core/scheduler/BoundedElasticScheduler.java
Outdated
Show resolved
Hide resolved
reactor-core/src/main/java/reactor/core/scheduler/BoundedElasticScheduler.java
Outdated
Show resolved
Hide resolved
reactor-core/src/test/java/reactor/core/scheduler/BoundedElasticSchedulerTest.java
Outdated
Show resolved
Hide resolved
reactor-core/src/test/java/reactor/core/scheduler/BoundedElasticSchedulerTest.java
Outdated
Show resolved
Hide resolved
reactor-core/src/test/java/reactor/core/scheduler/BoundedElasticSchedulerTest.java
Outdated
Show resolved
Hide resolved
reactor-core/src/test/java/reactor/core/scheduler/BoundedElasticSchedulerTest.java
Outdated
Show resolved
Hide resolved
reactor-core/src/test/java/reactor/core/scheduler/BoundedElasticSchedulerTest.java
Outdated
Show resolved
Hide resolved
Review fixes. Requested changes from @chemicL Fixes reactor#3182 reactor#3183. Signed-off-by: Stanislav Kotik <[email protected]> Co-authored-by: Stanislav Kotik <[email protected]>
…eactor#3182) If BoundedState picked and rejected, BoundedState not decrement markCount. After RejectedExecutionException BoundedState never move to idle. Fixes reactor#3182. Signed-off-by: Stanislav Kotik <[email protected]> Co-authored-by: Stanislav Kotik <[email protected]>
Review fixes. Requested changes from @chemicL Fixes reactor#3182 reactor#3183. Signed-off-by: Stanislav Kotik <[email protected]> Co-authored-by: Stanislav Kotik <[email protected]>
22ebde2
to
0ab2655
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing the comments. LGTM 🚢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the contribution (and good job on the retargetting to 3.4.x), LGTM 👍
@simonbasle this PR seems to have been merged on a maintenance branch, please ensure the change is merge-forwarded to intermediate maintenance branches and up to |
If BoundedState picked and rejected, BoundedState not decrement markCount. After RejectedExecutionException BoundedState never move to idle.
Fixes #3182.
Signed-off-by: Stanislav Kotik [email protected]
Co-authored-by: Stanislav Kotik [email protected]