dragonwell-project / dragonwell17

Alibaba Dragonwell17 JDK
https://dragonwell-jdk.io/
GNU General Public License v2.0
301 stars 42 forks source link

[TESTBUG][upstream]-Xcomp选项test/jdk/com/sun/jndi/dns/ConfigTests/PortUnreachable.java随机失败 #169

Open sendaoYan opened 1 year ago

sendaoYan commented 1 year ago

默认选项运行50次全部PASS:

expoert test=test/jdk/com/sun/jndi/dns/ConfigTests/PortUnreachable.java
function runJtreg() { jtreg -ea -esa -timeoutFactor:4 -v:fail,error,time,nopass -nr -w $dir/index-$1 $test &> $dir/$1.log ; if [[ 0 -ne $? ]] ; then echo -n "$1 " ; else rm -rf $dir/index-$1 $dir/$1.log ; fi ; } ; export -f runJtreg ; export dir="tmp-jtreg-"`basename ${test##* } .java` ; rm -rf $dir ; mkdir -p $dir ; time seq 50 | xargs -i -n 1 -P `nproc` bash -c "runJtreg {}" ; echo total fail number: `ls $dir/*.log 2> /dev/null | wc | awk '{print $1}'`

image

-Xcomp运行50次全部fail:

expoert test=test/jdk/com/sun/jndi/dns/ConfigTests/PortUnreachable.java
function runJtreg() { jtreg -Xcomp -ea -esa -timeoutFactor:4 -v:fail,error,time,nopass -nr -w $dir/index-$1 $test &> $dir/$1.log ; if [[ 0 -ne $? ]] ; then echo -n "$1 " ; else rm -rf $dir/index-$1 $dir/$1.log ; fi ; } ; export -f runJtreg ; export dir="tmp-jtreg-"`basename ${test##* } .java` ; rm -rf $dir ; mkdir -p $dir ; time seq 50 | xargs -i -n 1 -P `nproc` bash -c "runJtreg {}" ; echo total fail number: `ls $dir/*.log 2> /dev/null | wc | awk '{print $1}'`
STDERR:
java.lang.RuntimeException: Failed: call took 3573 ms, expected less than 3000 ms
    at PortUnreachable.handleException(PortUnreachable.java:101)
    at TestBase.launch(TestBase.java:84)
    at TestBase.run(TestBase.java:50)
    at PortUnreachable.main(PortUnreachable.java:60)

image 1.log

sendaoYan commented 1 year ago

https://code.alibaba-inc.com/os-quality/tone-matrix/codereview/14536536