Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
SettableListenableFuture may be successfully set with failureCallback executed and success callback ignored [SPR-15216] #19781
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:
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.
Juergen Hoeller commented
Good catch! I've revised our
I'll ping you once this is available in a new 4.3.7 snapshot.