- 
    Type:
Bug
 - 
    Resolution: Fixed
 - 
    Priority:
  P4                     
     - 
    Affects Version/s: 19
 - 
    Component/s: client-libs
 
- 
        b22
 - 
        x86_64
 - 
        linux_ubuntu
 
                    javax/sound/sampled/Clip/DataPusherThreadCheck.java is fails on Ubuntu 20.04 . The same test case passes on Mac OS Big Sur version 11.6.1, MacBook Pro
This test case was added in jdk 19 viaJDK-8279673 
I added a System.out.println to print the thread name and I could not see DataPusher.
----------System.out:(8/286)----------
thread 15 0millis: Line not supported: PCM_UNSIGNED 44100.0 Hz, 8 bit, mono, 1 bytes/frame
thread name : main
thread name : Common-Cleaner
thread name : Notification Thread
thread name : Reference Handler
thread name : Signal Dispatcher
thread name : Finalizer
thread name : MainThread
----------System.err:(12/733)----------
java.lang.RuntimeException: Thread 'DataPusher' isn't found
at DataPusherThreadCheck.checkThread(DataPusherThreadCheck.java:76)
at DataPusherThreadCheck.main(DataPusherThreadCheck.java:60)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:828)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Thread 'DataPusher' isn't found
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Thread 'DataPusher' isn't found
----------rerun:(27/2025)*----------
#-----testresult-----
elapsed=2775 0\:00\:02.775
end=Mon Feb 28 21\:48\:00 UTC 2022
environment=regtest
execStatus=Failed. Execution failed\: `main' threw exception\: java.lang.RuntimeException\: Thread 'DataPusher' isn't found
harnessLoaderMode=Classpath Loader
harnessVariety=Full Bundle
hostname=hostname
javatestOS=Linux 5.11.0-1028-oracle (amd64)
javatestVersion=6.0-ea+b14-2020-11-04
jtregVersion=jtreg 6.1 1
modules=java.desktop
script=com.sun.javatest.regtest.exec.RegressionScript
sections=script_messages build compile main
start=Mon Feb 28 21\:47\:57 UTC 2022
test=javax/sound/sampled/Clip/DataPusherThreadCheck.java
Tested on jdk19 b9
            
This test case was added in jdk 19 via
I added a System.out.println to print the thread name and I could not see DataPusher.
----------System.out:(8/286)----------
thread 15 0millis: Line not supported: PCM_UNSIGNED 44100.0 Hz, 8 bit, mono, 1 bytes/frame
thread name : main
thread name : Common-Cleaner
thread name : Notification Thread
thread name : Reference Handler
thread name : Signal Dispatcher
thread name : Finalizer
thread name : MainThread
----------System.err:(12/733)----------
java.lang.RuntimeException: Thread 'DataPusher' isn't found
at DataPusherThreadCheck.checkThread(DataPusherThreadCheck.java:76)
at DataPusherThreadCheck.main(DataPusherThreadCheck.java:60)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:828)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Thread 'DataPusher' isn't found
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Thread 'DataPusher' isn't found
----------rerun:(27/2025)*----------
#-----testresult-----
elapsed=2775 0\:00\:02.775
end=Mon Feb 28 21\:48\:00 UTC 2022
environment=regtest
execStatus=Failed. Execution failed\: `main' threw exception\: java.lang.RuntimeException\: Thread 'DataPusher' isn't found
harnessLoaderMode=Classpath Loader
harnessVariety=Full Bundle
hostname=hostname
javatestOS=Linux 5.11.0-1028-oracle (amd64)
javatestVersion=6.0-ea+b14-2020-11-04
jtregVersion=jtreg 6.1 1
modules=java.desktop
script=com.sun.javatest.regtest.exec.RegressionScript
sections=script_messages build compile main
start=Mon Feb 28 21\:47\:57 UTC 2022
test=javax/sound/sampled/Clip/DataPusherThreadCheck.java
Tested on jdk19 b9