dragonwell-project / dragonwell8

Alibaba Dragonwell8 JDK
http://dragonwell-jdk.io
GNU General Public License v2.0
4.2k stars 496 forks source link

[Bug] com/alibaba/wisp2/Wisp2TimerRemoveTest.java随机失败 #360

Closed sendaoYan closed 2 years ago

sendaoYan commented 2 years ago

Description

stealCount = 510
stealCount = 584
STDERR:
java.lang.RuntimeException: Expected that 3 <= 2
    at jdk.testlibrary.Asserts.error(Asserts.java:438)
    at jdk.testlibrary.Asserts.assertTrue(Asserts.java:407)
    at jdk.testlibrary.Asserts.assertLessThanOrEqual(Asserts.java:126)
    at jdk.testlibrary.Asserts.assertLessThanOrEqual(Asserts.java:114)
    at Wisp2TimerRemoveTest.main(Wisp2TimerRemoveTest.java:76)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
    at java.lang.Thread.run(Thread.java:[85](https://github.com/alibaba/dragonwell8/runs/7516218280?check_suite_focus=true#step:6:86)5)
    at com.alibaba.wisp.engine.WispTask.runOutsideWisp(WispTask.java:299)
    at com.alibaba.wisp.engine.WispTask.runCommand(WispTask.java:274)
    at com.alibaba.wisp.engine.WispTask.access$100(WispTask.java:53)
    at com.alibaba.wisp.engine.WispTask$CacheableCoroutine.run(WispTask.java:241)
    at java.dyn.CoroutineBase.startInternal(CoroutineBase.java:62)

Steps to Reproduce

https://github.com/alibaba/dragonwell8/runs/7516218280?check_suite_focus=true

sendaoYan commented 2 years ago

大概100次出现13次:

test=jdk/test/com/alibaba/wisp2/Wisp2TimerRemoveTest.java
rm -rf tmp-jtreg ; mkdir -p tmp-jtreg ; seq 100 | xargs -i -n 1 -P 100 bash -c "jtreg -timeoutFactor:1 -v:fail,error,time,nopass -nr -w tmp-jtreg/index-{} $test &> tmp-jtreg/{}.log ; grep 'Test results: passed: 1' -L tmp-jtreg/{}.log"

22.log