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

Dispose picked worker when BoundedElasticScheduler rejects task #3183

Merged
merged 2 commits into from
Sep 20, 2022

Conversation

Fearsin
Copy link
Contributor

@Fearsin Fearsin commented Sep 6, 2022

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]

@Fearsin Fearsin requested a review from a team as a code owner September 6, 2022 21:29
Copy link
Member

@chemicL chemicL left a 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.

@chemicL
Copy link
Member

chemicL commented Sep 14, 2022

Also, it might not be codified, but seems we're using the style of

// comment

vs

//comment

as the first one looks cleaner.

@OlegDokuka
Copy link
Contributor

@Fearsin LGTM with minor comments from @chemicL.

@OlegDokuka OlegDokuka added this to the 3.4.24 milestone Sep 19, 2022
@OlegDokuka OlegDokuka added the type/bug A general bug label Sep 19, 2022
@Fearsin Fearsin changed the base branch from main to 3.4.x September 19, 2022 18:05
@Fearsin Fearsin changed the base branch from 3.4.x to main September 19, 2022 18:07
Fearsin added a commit to Fearsin/reactor-core-fork that referenced this pull request Sep 20, 2022
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]>
@Fearsin Fearsin changed the base branch from main to 3.4.x September 20, 2022 10:01
Kuznetsov Stanislav and others added 2 commits September 20, 2022 13:02
…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]>
@Fearsin Fearsin force-pushed the 3182-dispose-picked-after-rejection branch from 22ebde2 to 0ab2655 Compare September 20, 2022 10:02
@Fearsin Fearsin requested review from chemicL and OlegDokuka and removed request for chemicL and OlegDokuka September 20, 2022 10:05
Copy link
Member

@chemicL chemicL left a 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 🚢

Copy link
Contributor

@simonbasle simonbasle left a 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 simonbasle changed the title Dispose picked if throw RejectedExecutionException #3182 Dispose picked worker when BoundedElasticScheduler rejects task Sep 20, 2022
@simonbasle simonbasle merged commit f2ffd70 into reactor:3.4.x Sep 20, 2022
@reactorbot
Copy link

@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 main 🙇

simonbasle added a commit that referenced this pull request Sep 20, 2022
@simonbasle simonbasle modified the milestones: 3.4.24, 3.5.0-M7 Sep 20, 2022
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.

Not decrement BoundedState MARK_COUNT if running task is rejected
5 participants