adoptium / adoptium/bumblebench
SSLSocketBench gives java.io.FileNotFoundException
- Dominant language
- Java
- Stars
- 27
- Forks
- 32
- PR merge metrics
- No merged PRs in 30d
Description
### Problem Description
Running SSLSocketBench gives java.io.FileNotFoundException as shown below. I believe Vlad worked on this benchmark since he has his username in the file path.
I'm trying to add BumbleBench targets for testing at Adopt as part of AdoptOpenJDK/openjdk-tests#1379.
### Error
```
13:47:11 java.io.FileNotFoundException: /home/vpapro/mySrvKeystore (No such file or directory)
```
### Console Output
```
13:47:08 ===============================================
13:47:08 Running test bumbleBench-SSLSocketBench_0 ...
13:47:08 ===============================================
13:47:08 bumbleBench-SSLSocketBench_0 Start Time: Fri Nov 1 13:47:08 2019 Epoch Time (ms): 1572630428469
13:47:08 "/java/jenkins/workspace/Piyush-Grinder/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:destroyAll; "/java/jenkins/workspace/Piyush-Grinder/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:groupAccess,destroyAll; echo "cache cleanup done";
13:47:08 JVMSHRC005I No shared class caches available
13:47:08 JVMSHRC005I No shared class caches available
13:47:08 cache cleanup done
13:47:08 variation: NoOptions
13:47:08 JVM_OPTIONS: -Xcompressedrefs
13:47:08 { itercnt=1; \
13:47:08 mkdir -p "/java/jenkins/workspace/Piyush-Grinder/openjdk-tests/TestConfig/../TestConfig/test_output_15726303782557/bumbleBench-SSLSocketBench_0"; \
13:47:08 cd "/java/jenkins/workspace/Piyush-Grinder/openjdk-tests/TestConfig/../TestConfig/test_output_15726303782557/bumbleBench-SSLSocketBench_0"; \
13:47:08 "/java/jenkins/workspace/Piyush-Grinder/openjdkbinary/j2sdk-image/bin/java" -jar /java/jenkins/workspace/Piyush-Grinder/openjdk-tests/TestConfig/../../jvmtest/perf/bumbleBench/bumblebench/BumbleBench.jar SSLSocketBench; \
13:47:08 if [ $? -eq 0 ] ; then echo ""; echo "bumbleBench-SSLSocketBench_0""_PASSED"; echo ""; cd /java/jenkins/workspace/Piyush-Grinder/openjdk-tests/TestConfig/..; else echo ""; echo "bumbleBench-SSLSocketBench_0""_FAILED"; echo ""; fi; } 2>&1 | tee -a "/java/jenkins/workspace/Piyush-Grinder/openjdk-tests/TestConfig/../TestConfig/test_output_15726303782557/TestTargetResult";
13:47:11 java.io.FileNotFoundException: /home/vpapro/mySrvKeystore (No such file or directory)
13:47:11 at java.io.FileInputStream.open(FileInputStream.java:195)
13:47:11 at java.io.FileInputStream.(FileInputStream.java:138)
13:47:11 at java.io.FileInputStream.(FileInputStream.java:93)
13:47:11 at net.adoptopenjdk.bumblebench.crypto.SSLSocketBench.(SSLSocketBench.java:51)
13:47:11 at java.lang.Class.forNameImpl(Native Method)
13:47:11 at java.lang.Class.forName(Class.java:333)
13:47:11 at net.adoptopenjdk.bumblebench.core.Launcher.loadTestClass(Launcher.java:104)
13:47:11 at net.adoptopenjdk.bumblebench.core.Launcher.loadTestClass(Launcher.java:85)
13:47:11 at net.adoptopenjdk.bumblebench.core.Launcher.main(Launcher.java:48)
13:47:11
13:47:11 -= BumbleBench series 7 version 5.10 running SSLSocketBench Fri Nov 01 13:47:08 EDT 2019 =-
13:47:11
13:47:11 Target Est Uncert% MaxPeak Peak Peak% %paused
13:47:11 java.net.ConnectException: Connection refused (Connection refused)
13:47:11 at java.net.PlainSocketImpl.socketConnect(Native Method)
13:47:11 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
13:47:11 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
13:47:11 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
13:47:11 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
13:47:11 at java.net.Socket.connect(Socket.java:607)
13:47:11 at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:666)
13:47:11 at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
13:47:11 at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
13:47:11 at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
13:47:11 at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
13:47:11 at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:264)
13:47:11 at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
13:47:11 at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
13:47:11 at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162)
13:47:11 at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056)
13:47:11 at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
13:47:11 at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1570)
13:47:11 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
13:47:11 at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
13:47:11 at net.adoptopenjdk.bumblebench.crypto.SSLSocketBench.doBatch(SSLSocketBench.java:88)
13:47:11 at net.adoptopenjdk.bumblebench.core.MicroBench.attempt(MicroBench.java:66)
13:47:11 at net.adoptopenjdk.bumblebench.core.BumbleBench.runAttempt(BumbleBench.java:139)
13:47:11 at net.adoptopenjdk.bumblebench.core.BumbleBench.run(BumbleBench.java:245)
13:47:11 at net.adoptopenjdk.bumblebench.core.MicroBench.run(MicroBench.java:107)
13:47:11 at net.adoptopenjdk.bumblebench.core.BumbleBench.bumbleMain(BumbleBench.java:287)
13:47:11 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:47:11 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
13:47:11 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
13:47:11 at java.lang.reflect.Method.invoke(Method.java:498)
13:47:11 at net.adoptopenjdk.bumblebench.core.Launcher.runBumbleMainOn(Launcher.java:61)
13:47:11 at net.adoptopenjdk.bumblebench.core.Launcher.main(Launcher.java:55)
13:47:11 0.2s: >! 110 695.5 40.0 110 110 470.0
...
...
```
### To Reproduce
- Add (or enable if it already exists) the target in the BumbleBench playlist (https://github.com/AdoptOpenJDK/openjdk-tests/blob/master/perf/bumbleBench/playlist.xml)
- Use the Adopt Grinder: https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/build?delay=0sec
- Set the `TARGET` to the relevant benchmark
Contributor guide
Research direction
Start with SSLSocketBench.java at the static initializer reported on line 51, then follow doBatch at line 88 to understand how the keystore and connection are used. Reproduce the failure by enabling the target in perf/bumbleBench/playlist.xml and running it through the Adopt Grinder; done means SSLSocketBench no longer fails because of the missing /home/vpapro/mySrvKeystore path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- performance
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100