RFR: 8373931: Test javax/sound/sampled/Clip/AutoCloseTimeCheck.java timed out
Phil Race
prr at openjdk.org
Wed Jan 21 21:09:36 UTC 2026
On Wed, 21 Jan 2026 19:12:10 GMT, Phil Race <prr at openjdk.org> wrote:
> This test needs the jtreg tag "@key sound" so that it can be properly directed to run only on systems with sound support.
T
> This test validates the functionality of SoundClip, which stated in the spec:
>
> ```
> * if the implementation does not find a suitable output device for the data,
> * playing the clip will be a no-op.
> ```
>
> So if it hangs then it is a product bug.
That's not exactly the problem.
The hang is intermittent. Run often but fails only sometimes, and always on an OL VM
I'm looking at logs where a particular VM exhibited the hang 2 days ago but not long before that the test passed in a different run on that same VM in just 35 seconds, no problems.
A hang one in 100 times doesn't sound like much until you know that it can get run 20 times a day .. so every few days you have a failure. Those numbers aren't exact but are in the ball park.
I also think it doesn't help that without the sound keyword the test can be run concurrently with other (sound) tests.
Which means there's perhaps others that might theoretically need the keyword too.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29353#issuecomment-3781164981
More information about the client-libs-dev
mailing list