You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SettableListenableFuture may be successfully set with failureCallback executed and success callback ignored [SPR-15216] #19781
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.
Good catch! I've revised our SettableListenableFuture implementation once more, now centralizing all state into the inner FutureTask subclass (through overriding FutureTask.set and FutureTask.setException and bypassing FutureTask.run completely).
I'll ping you once this is available in a new 4.3.7 snapshot.
Activity
spring-projects-issues commentedon Feb 2, 2017
Juergen Hoeller commented
Good catch! I've revised our
SettableListenableFutureimplementation once more, now centralizing all state into the innerFutureTasksubclass (through overridingFutureTask.setandFutureTask.setExceptionand bypassingFutureTask.runcompletely).I'll ping you once this is available in a new 4.3.7 snapshot.
spring-projects-issues commentedon Feb 2, 2017
Juergen Hoeller commented
A new
4.3.7.BUILD-SNAPSHOTcontaining this latest variant ofSettableListenableFutureis available now. Please give it a try...spring-projects-issues commentedon Feb 3, 2017
Ivan Sopov commented
Thanks, my jcstress-based tests pass.