-
Notifications
You must be signed in to change notification settings - Fork 970
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
[core] Use java11 as default #4278
Conversation
@FangYongs Hi, just curious about many user use jdk 8 currently, this update may cause users trouble to fit their env. if wrong can point out. Thanks |
Is jdk 1.8 no longer supported? In my company 1.8 is still the main version. |
+1 with @LinMingQiang,many company use jdk8. |
Why not use java-8 as default? |
Hi @xuzifu666 @LinMingQiang @wwj6591812, JDK 1.8 is already a very early version. Most computing engines have supported JDK 11 and above, and even some new versions of third-party dependencies only support JDK 11. Considering these situations, after discussing with @JingsongLi, we plan to upgrade the default JDK version from 1.8 to 11 starting from the Paimon-1.0. For businesses that rely on 1.8, you can consider upgrading to JDK 11. cc @JingsongLi |
Hi @FangYongs , Considering everyone's comments above, I would like to ask what was the original intention behind upgrading to JDK11? What problem do you want to solve? |
6d1b9e4
to
13f6641
Compare
@JingsongLi The original requirement is to use Caffeine3 because Caffeine2 has some problems when evicting data, @Aitozi can provide more context. Currently, Caffeine3 only supports Java 11 and above versions. |
It may be related to ben-manes/caffeine#1757. I tried upgrading Caffeine before, but the shaded version had the prefix I suggest upgrading this shaded version locally and collecting performance data for the block cache. Then we can decide whether to upgrade from JDK8 to JDK11. As for the upgrade process, here is a solution: We can allow users to build Paimon on either JDK8 or JDK11. To do this, we need to shade paimon-caffeine-3 and paimon-caffeine-2 in the same package path maybe all called Then choose the appropriate version in Paimon project pom during building. WDYT? @FangYongs @JingsongLi |
@FangYongs @Aitozi Thanks for the information. Can we have an another solution, such as cherry-pick caffeine's bugfix? |
I think we can use guava cache when jave-8, and use Caffeine3 when jave-11. |
Let's just use Guava. |
Purpose
Linked issue: close #4140
Tests
no
API and Format
no
Documentation
no