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

Threading issues causing apparent deadlock [SPR-11418] #16045

Closed
spring-issuemaster opened this issue Feb 11, 2014 · 1 comment
Closed

Threading issues causing apparent deadlock [SPR-11418] #16045

spring-issuemaster opened this issue Feb 11, 2014 · 1 comment

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Feb 11, 2014

chip stettler opened SPR-11418 and commented

I have two beans that implement @Async methods. I have an async method in bean #1 calling an async method in bean #2. I create A ThreadPoolExecutor with 5 core threads, 10 max threads and 25 queue length.

I created a test that creates 5 parallel calls to bean#1 async method. The threads appear to deadlock and a timeout occurs on the Future.get(). If I increase the core threads to 6 the test executes with no problem.

If I remove an @Async from either bean so that there is no nesting of async calls then everything works fine.

Seems like a bug as it sort of works if there are enough threads but the queuing aspect of the thread pool seems to break when nested.


Affects: 3.2.4

Attachments:

@spring-issuemaster
Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Jan 12, 2019

Bulk closing outdated, unresolved issues. Please, reopen if still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.