dragonwell-releng / dragonwell-adoptium

0 stars 0 forks source link

【dragonwell8】用例multi-tenant/test/com/alibaba/tenant/TestCpuCfsThrottling.java使用-Xmixed选项在x64平台概率失败 #160

Closed zhaoyuanfang1 closed 1 year ago

zhaoyuanfang1 commented 1 year ago

https://tone.aliyun-inc.com/ws/xesljfzh/test_result/190994?tab=1 Steps to Reproduce Steps to reproduce the behavior:

wget -nv https://dragonwell.oss-cn-shanghai.aliyuncs.com/8.14.15/Alibaba_Dragonwell_Extended_8.14.15_x64_linux.tar.gz -O binary.tar.gz
tar zxvf binary.tar.gz
cd dragonwell-8.14.15
export JAVA_HOME=$PWD ; export PATH=$JAVA_HOME/bin:$PATH ; export TEST_JDK_HOME=$JAVA_HOME
cd -
wget -nv https://compiler-ci-bucket.oss-cn-hangzhou.aliyuncs.com/jdk/tools/jtreg5.1-b01.zip -O jtreg.zip
unzip jtreg.zip
cd jtreg
export JT_HOME=$PWD ; export PATH=$PWD/bin:$PATH
cd -
git clone -b master "git@github.com:alibaba/dragonwell8.git" jdk-repo
test=./jdk-repo/jdk/test/multi-tenant/test/com/alibaba/tenant/TestCpuCfsThrottling.java
nproc=`nproc` ; dir="tmp-jtreg-"`basename $test .java` ; rm -rf $dir ; mkdir -p $dir ; time seq 500 | xargs -i -n 1 -P $nproc bash -c "jtreg -ea -esa -Djdk.lang.processReaperUseDefaultStackSize=true -Dtest.wisp.socketAddress=www.alibabacloud.com  -XX:-UseCompressedOops -timeoutFactor:2 -v:fail,error,time,nopass -nr -w $dir/index-{} $test &> $dir/{}.log ; grep 'Test results: passed: 1' -L $dir/{}.log"

dragonwell8失败日志: 128.log 56.log

temurin无此用例 关键错误信息:

STDERR:
=== Begin test com.alibaba.tenant.TestCpuCfsThrottling.testCpuCfsQuotas ===
=== PASSED (1 passed, 0 failed, 2 total) ===
=== Begin test com.alibaba.tenant.TestCpuCfsThrottling.testAdjustCpuCfsQuotas ===
java.lang.reflect.InvocationTargetException
    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 jdk.testlibrary.TestUtils.runWithPrefix(TestUtils.java:53)
    at com.alibaba.tenant.TestCpuCfsThrottling.main(TestCpuCfsThrottling.java:256)
    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:855)
Caused by: java.lang.RuntimeException: Expected that 84648655 > 95699734
    at jdk.testlibrary.Asserts.error(Asserts.java:438)
    at jdk.testlibrary.Asserts.assertTrue(Asserts.java:407)
    at jdk.testlibrary.Asserts.assertGreaterThan(Asserts.java:280)
    at jdk.testlibrary.Asserts.assertGreaterThan(Asserts.java:268)
    at com.alibaba.tenant.TestCpuCfsThrottling.testAdjustCpuCfsQuotas(TestCpuCfsThrottling.java:121)
    ... 12 more
=== FAILED ( 1 passed, 1 failed2 total) ===
java.lang.RuntimeException: Total 1/2 testcases failed, class com.alibaba.tenant.TestCpuCfsThrottling
    at jdk.testlibrary.Asserts.error(Asserts.java:438)
    at jdk.testlibrary.Asserts.fail(Asserts.java:424)
    at jdk.testlibrary.TestUtils.runWithPrefix(TestUtils.java:67)
    at com.alibaba.tenant.TestCpuCfsThrottling.main(TestCpuCfsThrottling.java:256)
    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:855)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Total 1/2 testcases failed, class com.alibaba.tenant.TestCpuCfsThrottling
JavaTest Message: shutting down test

dragonwell8失败概率: 6/500 image 环境信息: image

sendaoYan commented 1 year ago

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