-
Bug
-
Resolution: Fixed
-
P2
-
8, 8u60, 9
-
b50
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084469 | emb-9 | Paul Sandoz | P2 | Resolved | Fixed | team |
JDK-8086788 | 8u65 | Paul Sandoz | P2 | Resolved | Fixed | b01 |
JDK-8072469 | 8u60 | Paul Sandoz | P2 | Closed | Fixed | b03 |
JDK-8138051 | emb-8u65 | Unassigned | P2 | Resolved | Fixed | b01 |
JDK-8076742 | emb-8u60 | Paul Sandoz | P2 | Resolved | Fixed | team |
There is a race condition in the test java/util/concurrent/CompletableFuture/ThenComposeExceptionTest.java, where the setting of the value in an AtomicReference may occur after the assertion checking that value.
This is more likely to manifest with the VM options:
-d64 -Xcomp -server -d64 -XX:MaxRAMFraction=8 -XX:+CreateMinidumpOnCrash -ea -esa -XX:+TieredCompilation -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:+IgnoreUnrecognizedVMOptions -XX:+AggressiveOpts -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops
----------System.out:(47/3633)----------
[TestNG] Running:
java/util/concurrent/CompletableFuture/ThenComposeExceptionTest.java
test ThenComposeExceptionTest.testThenCompose("thenCompose and completeExceptionally", ThenComposeExceptionTest$$Lambda$4/727334714@75669bce, ThenComposeExceptionTest$$Lambda$1/1619870038@1ee12b96, ThenComposeExceptionTest$$Lambda$3/127442007@c009aaa): success
test ThenComposeExceptionTest.testThenCompose("thenComposeAsync and completeExceptionally", ThenComposeExceptionTest$$Lambda$4/727334714@75669bce, ThenComposeExceptionTest$$Lambda$2/247747923@7aff76da, ThenComposeExceptionTest$$Lambda$3/127442007@c009aaa): failure
java.lang.AssertionError: Incorrect exception reported on whenComplete expected [true] but found [false]
at org.testng.Assert.fail(Assert.java:94)
at org.testng.Assert.failNotEquals(Assert.java:494)
at org.testng.Assert.assertTrue(Assert.java:42)
at ThenComposeExceptionTest.testThenCompose(ThenComposeExceptionTest.java:107)
This is more likely to manifest with the VM options:
-d64 -Xcomp -server -d64 -XX:MaxRAMFraction=8 -XX:+CreateMinidumpOnCrash -ea -esa -XX:+TieredCompilation -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:+IgnoreUnrecognizedVMOptions -XX:+AggressiveOpts -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops
----------System.out:(47/3633)----------
[TestNG] Running:
java/util/concurrent/CompletableFuture/ThenComposeExceptionTest.java
test ThenComposeExceptionTest.testThenCompose("thenCompose and completeExceptionally", ThenComposeExceptionTest$$Lambda$4/727334714@75669bce, ThenComposeExceptionTest$$Lambda$1/1619870038@1ee12b96, ThenComposeExceptionTest$$Lambda$3/127442007@c009aaa): success
test ThenComposeExceptionTest.testThenCompose("thenComposeAsync and completeExceptionally", ThenComposeExceptionTest$$Lambda$4/727334714@75669bce, ThenComposeExceptionTest$$Lambda$2/247747923@7aff76da, ThenComposeExceptionTest$$Lambda$3/127442007@c009aaa): failure
java.lang.AssertionError: Incorrect exception reported on whenComplete expected [true] but found [false]
at org.testng.Assert.fail(Assert.java:94)
at org.testng.Assert.failNotEquals(Assert.java:494)
at org.testng.Assert.assertTrue(Assert.java:42)
at ThenComposeExceptionTest.testThenCompose(ThenComposeExceptionTest.java:107)
- backported by
-
JDK-8076742 Race condition in ThenComposeExceptionTest.java
-
- Resolved
-
-
JDK-8084469 Race condition in ThenComposeExceptionTest.java
-
- Resolved
-
-
JDK-8086788 Race condition in ThenComposeExceptionTest.java
-
- Resolved
-
-
JDK-8138051 Race condition in ThenComposeExceptionTest.java
-
- Resolved
-
-
JDK-8072469 Race condition in ThenComposeExceptionTest.java
-
- Closed
-