Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] com/alibaba/wisp/TestWispDetailCounter.java用例报错java.net.BindException: Address already in use #358

Closed
sendaoYan opened this issue Jul 26, 2022 · 0 comments

Comments

@sendaoYan
Copy link
Collaborator

sendaoYan commented Jul 26, 2022

Description
com/alibaba/wisp/TestWispDetailCounter.java用例报错java.net.BindException: Address already in use

Steps to Reproduce
Steps to reproduce the behavior:

mkdir -p "/home/yansendao/aqa-tests-jdk8/TKG/../TKG/output_1658820121531/dragonwell8_feature_jdk1_0"; \
cd "/home/yansendao/aqa-tests-jdk8/TKG/../TKG/output_1658820121531/dragonwell8_feature_jdk1_0"; \
"/home/yansendao/software/jdk/2022-05/dragonwell-8.11.12/bin/java" -Xmx512m -jar "/home/yansendao/aqa-tests-jdk8/TKG/../../jvmtest/openjdk/jtreg/lib/jtreg.jar" \
                -agentvm -a -ea -esa -v:fail,error,time,nopass -retain:fail,error,*.dmp,javacore.*,heapdump.*,*.trc -ignore:quiet -timeoutFactor:8 -xml:verify -concurrency:24  -vmoptions:"-Xmx512m  " \
                -w ""/home/yansendao/aqa-tests-jdk8/TKG/../TKG/output_1658820121531/dragonwell8_feature_jdk1_0"/work" \
                -r ""/home/yansendao/aqa-tests-jdk8/TKG/../TKG/output_1658820121531/dragonwell8_feature_jdk1_0"/report" \
                -jdk:"/home/yansendao/software/jdk/2022-05/dragonwell-8.11.12" \
                -exclude:"/home/yansendao/aqa-tests-jdk8/TKG/../openjdk/openjdk-jdk/jdk/test/ProblemList.txt" \
                -exclude:"/home/yansendao/aqa-tests-jdk8/TKG/../../jvmtest/openjdk/excludes/ProblemList_openjdk8.txt" \
                 \
                 \
                "/home/yansendao/aqa-tests-jdk8/TKG/../openjdk/openjdk-jdk/jdk/test/com/alibaba/wisp"; \
                if [ $? -eq 0 ] ; then echo ""; echo "dragonwell8_feature_jdk1_0""_PASSED"; echo ""; cd /home/yansendao/aqa-tests-jdk8/TKG/..;  else echo ""; echo "dragonwell8_feature_jdk1_0""_FAILED"; echo ""; fi; } 2>&1 | tee -a "/home/yansendao/aqa-tests-jdk8/TKG/../TKG/output_1658820121531/TestTargetResult";
java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:463)
        at sun.nio.ch.Net.bind(Net.java:455)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:233)
        at sun.nio.ch.WispServerSocketImpl.bind(WispServerSocketImpl.java:59)
        at java.net.ServerSocket.bind(ServerSocket.java:407)
        at java.net.ServerSocket.<init>(ServerSocket.java:269)
        at java.net.ServerSocket.<init>(ServerSocket.java:155)
        at TestWispDetailCounter.startNetServer(TestWispDetailCounter.java:117)
        at TestWispDetailCounter.main(TestWispDetailCounter.java:45)
        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)
        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)
sendaoYan added a commit that referenced this issue Jul 26, 2022
Summary: fix com/alibaba/wisp/TestWispDetailCounter.java and com/alibaba/wisp/io/BlockingAccept2Test.java testcase fail because of java.net.BindException: Address already in use

Test Plan: CI pipeline

Reviewed-by: lei.yul, lvfei.lv

Issue: #358
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant