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

java/util/stream/test/org/openjdk/tests/java/util/stream/CollectorsTest.java fails with jtreg timeout

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 22, 23
    • core-libs



      log extract

      ...

      test org.openjdk.tests.java.util.stream.CollectorsTest.testSimpleToMap("array:0..1000", RefTestData[array:0..1000]): success
      config java.util.stream.LoggingTestCase.after(org.testng.internal.TestResult@476f2d0): success
      config java.util.stream.LoggingTestCase.before(): success
      test org.openjdk.tests.java.util.stream.CollectorsTest.testSimpleToMap("ArrayList.asList:0..1000", java.util.stream.TestData$AbstractTestData$RefTestData@48b052e3): success
      config java.util.stream.LoggingTestCase.after(org.testng.internal.TestResult@55798ee4): success
      config java.util.stream.LoggingTestCase.before(): success
      Timeout signalled after 480 seconds


      seems to be stuck in testSimpleToMap



         void exerciseMapCollection(TestData<T, Stream<T>> data,
                                     Collector<T, ?, ? extends M> collector,
                                     CollectorAssertion<T, M> assertion)
                  throws ReflectiveOperationException {
              boolean ordered = !collector.characteristics().contains(Collector.Characteristics.UNORDERED);

              M m = withData(data)
                      .terminal(s -> s.collect(collector))
                      .resultAsserter(mapTabulationAsserter(ordered))
                      .exercise();

      as per main thread stack trace

      "MainThread" #35 [19012] prio=5 os_prio=0 cpu=4063406.25ms elapsed=4103.64s allocated=767M defined_classes=1363 tid=0x0000020c0732f690 nid=19012 runnable [0x00000096032fc000]
         java.lang.Thread.State: RUNNABLE
      at java.util.concurrent.ForkJoinPool.helpComplete(java.base@22-ea/ForkJoinPool.java:2355)
      at java.util.concurrent.ForkJoinTask.awaitDone(java.base@22-ea/ForkJoinTask.java:493)
      at java.util.concurrent.ForkJoinTask.join(java.base@22-ea/ForkJoinTask.java:662)
      at java.util.concurrent.ForkJoinTask.invoke(java.base@22-ea/ForkJoinTask.java:677)
      at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(java.base@22-ea/ForEachOps.java:160)
      at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(java.base@22-ea/ForEachOps.java:174)
      at java.util.stream.AbstractPipeline.evaluate(java.base@22-ea/AbstractPipeline.java:225)
      at java.util.stream.ReferencePipeline.forEach(java.base@22-ea/ReferencePipeline.java:596)
      at java.util.stream.ReferencePipeline$Head.forEach(java.base@22-ea/ReferencePipeline.java:765)
      at java.util.stream.ReferencePipeline.collect(java.base@22-ea/ReferencePipeline.java:679)
      at org.openjdk.tests.java.util.stream.CollectorsTest.lambda$exerciseMapCollection$1(CollectorsTest.java:332)
      at org.openjdk.tests.java.util.stream.CollectorsTest$$Lambda/0x000000003b154fb8.apply(Unknown Source)
      at java.util.stream.OpTestCase$BaseTerminalTestScenario.run(java.base@22-ea/OpTestCase.java:459)
      at java.util.stream.OpTestCase$ExerciseDataTerminalBuilder.exercise(java.base@22-ea/OpTestCase.java:589)
      at org.openjdk.tests.java.util.stream.CollectorsTest.exerciseMapCollection(CollectorsTest.java:334)
      at org.openjdk.tests.java.util.stream.CollectorsTest.testSimpleToMap(CollectorsTest.java:521)

            dl Doug Lea
            msheppar Mark Sheppard
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: