-
Bug
-
Resolution: Fixed
-
P3
-
8
-
b120
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8030319 | 8u5 | Paul Sandoz | P3 | Resolved | Fixed | b01 |
When composing completable futures using thenCompose a race condition is possible if:
1) the composing future completes before or during the call to thenCompose; and
2) the composing function returns a CompletedFuture that is executed asynchronously and does not complete during the call to thenCompose.
Under such conditions the composed future's result will be null and the result produced by the composing function's CompletableFuture will be discarded when it completes.
1) the composing future completes before or during the call to thenCompose; and
2) the composing function returns a CompletedFuture that is executed asynchronously and does not complete during the call to thenCompose.
Under such conditions the composed future's result will be null and the result produced by the composing function's CompletableFuture will be discarded when it completes.
- backported by
-
JDK-8030319 Race condition in CompletableFuture.thenCompose with asynchronous task
-
- Resolved
-