Skip to content

Nested @Async annotations can block indefinitely #6429

Closed

Description

@foygl

Hi,

There is an issue introduced in Spring 4.2.6.RELEASE (used by Spring Boot 1.3.4.RELEASE) which means that it is possible for @async annotated method calls to become blocked. This happens when you have nested @async annotated calls which use the default task executor, and you have a task executor defined in your application context (but not explicitly used).

I have created a proof of concept here https://github.com/foygl/spring-async-problem

I've only tested this with Spring Boot so I'm not sure if this is a wider Spring problem or just an issue with Spring Boot (although I suspect the former). I've replicated this in Spring Boot version 1.4.0.RC1 (i.e. Spring 4.3.1.RELEASE) so this problem still exists in the latest version.

Thanks

Activity

  1. added
    status: waiting-for-triage
    on Jul 19, 2016
  2. added
    type: regression
    and removed
    status: waiting-for-triage
    on Jul 19, 2016
  3. philwebb commented on Jul 19, 2016

    @philwebb
    Member

    It looks like something has changed in Spring Framework to cause this. If I run Spring Boot 1.3.3 with Spring Framework 4.2.6 I also see the failure.

    I've raise SPR-14490

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: regression

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions