Skip to content

SettableListenableFuture may be successfully set with failureCallback executed and success callback ignored [SPR-15216] #19781

Closed
@spring-projects-issues

Description

@spring-projects-issues

Ivan Sopov opened SPR-15216 and commented

Version that I tested is 4.3.7.BUILD-SNAPSHOT with the fix for #19766

I've checked fix for #19766 and it works. But I have wrote another test:

https://github.com/isopov/isopov-jcstress/blob/master/src/main/java/com/sopovs/moradanen/jcstress/spring/SettableListenableFuture2Test.java

It reveals that it is possible to successfully set value for this future, but success callback will not be executed and failure callback instead will be called. As in previous case it is the case of concurrently setting and cancelling future under race.


Affects: 4.3.6

Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions