-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Upgrade guava version to support higher JDK version #3541
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this could make oap running 9 and 9+?
And license needs to be upgraded. Why CI check didn't find version change?
Maybe CI found the issue. |
I've replayed the e2e tests under JDK 1.9 manually (which won't report check status back to this PR), let's wait and see the result, if it passes, I think it should generally work on 1.9 and above, https://builds.apache.org/job/skywalking-e2e-2/763/console |
If you see it passed, reply me here. I am using phone only, today. |
@wu-sheng it passes under JDK 9, see the selected/highlighted words below the screenshot |
Cool. How about higher? 11 for example? I am thinking about we need JRE documentation update. |
I tested this afternoon locally with OpenJDK 12, it works fine too, so it's highly possible that it also works on JDK 10 and JDK11, do we need to replay this on the infra Jenkins? |
The infra is setting up our VM. Please submit an issue to track the higher jdk tests. In this PR, at least, we should update document. |
Oops, I've made a mistake that the container in which our e2e runs is based on OpenJDK8, the JDK version in |
OK, so we haven't verified in 9+? |
I verified JDK12 locally, others are not verified yet |
We may need much more resources if we want to verify every commit on those versions |
OK. I think 9 and 11 are LTS versions, right? We could focus on that. |
/run ci |
Please answer these questions before submitting pull request
Why submit this pull request?
Bug fix
New feature provided
Improve performance
Related issues
#3540 and #3477
skywalking/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/annotation/AnnotationScan.java
Lines 54 to 56 in 5b039e9
the
classpath.getTopLevelClassesRecursive("org.apache.skywalking")
returns emptyset
under JDK 8+, and it turns out to be an issue of Guava, see google/guava#3249 (comment) , this patch upgrades the Guava version to 23.1, and I've verified locally the exception disappear and OAP starts successfully