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

[TESTBUG] LoopRobustness.java test is failing intermittently on ubuntu in CI

XMLWordPrintable

    • linux_ubuntu

      Test suite: Regression
      Test: java/awt/EventDispatchThread/LoopRobustness/LoopRobustness.java
      Product Tested: jdk-17.0.15, jdk-21.0.6, jdk24 and jdk-25
      OS: linux-x64, ubuntu 22.04

      Test Failing with following error:
      java.lang.RuntimeException: Test FAILED: second thread hasn't notified MainThread
      at LoopRobustness.main(LoopRobustness.java:74)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:842)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Test FAILED: second thread hasn't notified MainThread
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test FAILED: second thread hasn't notified MainThread

      Analysis:
      Test is failing because of the synchronization issue.
      On increasing the wait time from 1000ms to 2000ms test is passing every time.

            sarvejai Sarvesh Kumar Jain
            kboulanouare Khalid Boulanouare
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: