JDK-8264526 : javax/swing/text/html/parser/Parser/8078268/bug8078268.java timeout
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 9,11,16,17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-03-31
  • Updated: 2023-01-13
  • Resolved: 2021-04-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 8
11.0.14Fixed 17 b17Fixed 8u371Fixed
Related Reports
Relates :  
Relates :  
Description
STDOUT:
STDERR:

ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Parsing takes too long.
REASON: User specified action: run main bug8078268
TIME:   6.275 seconds
messages:
command: main bug8078268
reason: User specified action: run main bug8078268
Mode: othervm
Additional options from @modules: --add-modules java.desktop
elapsed time (seconds): 6.275
configuration:
Boot Layer
  add modules: java.desktop

STDOUT:
STDERR:
java.lang.RuntimeException: Parsing takes too long.
    at bug8078268.main(bug8078268.java:64)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
    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$MainThread.run(MainWrapper.java:127)
    at java.base/java.lang.Thread.run(Thread.java:831)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Parsing takes too long.
JavaTest Message: shutting down test
Comments
>The load of the machine is too heavy? Generally it seems to hit machines that face a high load in out nightly test runs. But hard to answer in general. >Maybe, it's fine to further increase the timeout threshold to 20 ~ 30s. Let's see how well it works in the next few days with my adjusted timeout of 20s.
13-01-2023

The load of the machine is too heavy? Maybe, it's fine to further increase the timeout threshold to 20 ~ 30s.
13-01-2023

> How long did it take when timeout occurred? We observed the mentioned exception with the current default value of 10.000 ms , see https://github.com/openjdk/jdk/blob/master/test/jdk/javax/swing/text/html/parser/Parser/8078268/bug8078268.java#L41 I switched it locally to 20.000 ms . So far no new "Parsing takes too long." exceptions, but we just run for a few days so far with the higher value.
13-01-2023

How long did it take when timeout occurred?
13-01-2023

We still run into timeouts in this test every few days (this was observed on Windows, Mac and Linux ppc64le). Error output : java.lang.RuntimeException: Parsing takes too long. at bug8078268.main(bug8078268.java:64) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:578) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125) at java.base/java.lang.Thread.run(Thread.java:1623) Maybe we need a larger timeout value ?
10-01-2023

Fix request I'd like to backport this fix to jdk11u. Only test timeout fix, no regression. It can be applied cleanly. Thanks.
06-11-2021

Changeset: da643cdb Author: Jie Fu <jiefu@openjdk.org> Date: 2021-04-02 08:25:26 +0000 URL: https://git.openjdk.java.net/jdk/commit/da643cdb
02-04-2021

PR: https://github.com/openjdk/jdk/pull/3287
31-03-2021