Skip to content

Default SimpleAsyncTaskExecutor is Not Reused #1974

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

Closed
garyrussell opened this issue Oct 5, 2021 · 1 comment · Fixed by #1975
Closed

Default SimpleAsyncTaskExecutor is Not Reused #1974

garyrussell opened this issue Oct 5, 2021 · 1 comment · Fixed by #1975
Assignees
Milestone

Comments

@garyrussell
Copy link
Contributor

The child container attempts to save the executor in its properties, but each time the container is started, it gets a new set of properties.

garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Oct 5, 2021
Resolves spring-projects#1974

A new `SimpleAsyncTaskExecutor` was created for each child container when
the container was stopped/started.
Reuse the same container for each child; handle an increase to `concurrency` between
stop and start.
artembilan pushed a commit that referenced this issue Oct 5, 2021
Resolves #1974

A new `SimpleAsyncTaskExecutor` was created for each child container when
the container was stopped/started.
Reuse the same container for each child; handle an increase to `concurrency` between
stop and start.

* Fix unnecessary bean name null check.

* Fix previous commit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants