Skip to content

ThreadPoolTaskExecutor should cancel all remaining Future handles on shutdown [SPR-16607] #21148

@spring-projects-issues

Description

@spring-projects-issues

Nicolas Labrot opened SPR-16607 and commented

ThreadPoolTaskExecutor#submitListenable returns a future that will not be canceled when the executor is shutdown. By consequence Future#get will block indefinitely.

I would like to propose that the list of Runnable returned by this.executor.shutdownNow(); is used to cancel the ListenableFuture.


Affects: 5.0.4

Issue Links:

Referenced from: commits 3c1adf7, 9939908

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions