Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8339979

VirtualThreadSchedulerMXBeanTest.testReduceParallelism fails intermittently

XMLWordPrintable

    • 24
    • b19
    • x86_64, aarch64
    • linux, windows

      The newly added test jdk/management/VirtualThreadSchedulerMXBean/VirtualThreadSchedulerMXBeanTest.java intermittent fail, the log sippet:

      STARTED VirtualThreadSchedulerMXBeanTest::testReduceParallelism '[1] [parallelism=64, size=0, mounted=0, queued=0]'
      await mounted virtual thread count >= 68 ...
      await mounted virtual thread count <= 32 ...
      SUCCESSFUL VirtualThreadSchedulerMXBeanTest::testReduceParallelism '[1] [parallelism=64, size=0, mounted=0, queued=0]'
      STARTED VirtualThreadSchedulerMXBeanTest::testReduceParallelism '[2] MXBeanProxy(com.sun.jmx.mbeanserver.JmxMBeanServer@74fd34be[jdk.management:type=VirtualThreadScheduler])'
      await mounted virtual thread count >= 68 ...
      await mounted virtual thread count <= 32 ...
      org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
          at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
          at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
          at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
          at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
          at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31)
          at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:183)
          at VirtualThreadSchedulerMXBeanTest.testReduceParallelism(VirtualThreadSchedulerMXBeanTest.java:159)
          at java.base/java.lang.reflect.Method.invoke(Method.java:573)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
          at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:197)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
          at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
          at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:807)
          at java.base/java.util.stream.ReferencePipeline$7$1FlatMap.accept(ReferencePipeline.java:294)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
          at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
          at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:570)
          at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:560)
          at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
          at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
          at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:636)
          at java.base/java.util.stream.ReferencePipeline$7$1FlatMap.accept(ReferencePipeline.java:294)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
          at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1716)
          at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:570)
          at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:560)
          at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
          at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
          at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:636)
          at java.base/java.util.stream.ReferencePipeline$7$1FlatMap.accept(ReferencePipeline.java:294)
          at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1716)
          at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:570)
          at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:560)
          at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
          at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
          at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
          at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:636)
          at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
          at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
      FAILED VirtualThreadSchedulerMXBeanTest::testReduceParallelism '[2] MXBeanProxy(com.sun.jmx.mbeanserver.JmxMBeanServer@74fd34be[jdk.management:type=VirtualThreadScheduler])'

            alanb Alan Bateman
            syan Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: