-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[JDK17] Doris supports JDK17 #30484
Comments
morningman
pushed a commit
that referenced
this issue
Jan 29, 2024
Issue Number: close #30484 problem: gson will use Java's reflection mechanism to generate a default Adapter, but JDK17 is prohibited from visiting such an access. solution: gson has provided solutions since 2.9.1, which can bypass this problem: Add support for reflection access filter by Marcono1234 · Pull Request #1905 · google/gson We need to upgrade the gson version and use this solution
yiguolei
pushed a commit
that referenced
this issue
Jan 30, 2024
Issue Number: close #30484 problem: gson will use Java's reflection mechanism to generate a default Adapter, but JDK17 is prohibited from visiting such an access. solution: gson has provided solutions since 2.9.1, which can bypass this problem: Add support for reflection access filter by Marcono1234 · Pull Request #1905 · google/gson We need to upgrade the gson version and use this solution
morningman
pushed a commit
that referenced
this issue
Jan 31, 2024
… `Comparable` interface (#30050) (#30625) Issue Number: #30484 The objects stored in PriorityQueue must implement the Comparable interface or passed into the customized `Comparator`. If we don't do this, run the program in the JDK17 environment will report an exception: ```java Caused by: java.lang.AssertionError: Expect exception msg contains 'query wait timeout', but meet 'java.sql.SQLException: ClassCastException, msg: class org.apache.doris.resource.workloadgroup.QueueToken cannot be cast to class java.lang.Comparable (org.apache.doris.resource.workloadgroup.QueueToken is in unnamed module of loader 'app'; java.lang.Comparable is in module java.base of loader 'bootstrap')' ```
yiguolei
pushed a commit
that referenced
this issue
Jan 31, 2024
… `Comparable` interface (#30050) (#30625) Issue Number: #30484 The objects stored in PriorityQueue must implement the Comparable interface or passed into the customized `Comparator`. If we don't do this, run the program in the JDK17 environment will report an exception: ```java Caused by: java.lang.AssertionError: Expect exception msg contains 'query wait timeout', but meet 'java.sql.SQLException: ClassCastException, msg: class org.apache.doris.resource.workloadgroup.QueueToken cannot be cast to class java.lang.Comparable (org.apache.doris.resource.workloadgroup.QueueToken is in unnamed module of loader 'app'; java.lang.Comparable is in module java.base of loader 'bootstrap')' ```
yiguolei
pushed a commit
that referenced
this issue
Jan 31, 2024
… `Comparable` interface (#30050) (#30625) Issue Number: #30484 The objects stored in PriorityQueue must implement the Comparable interface or passed into the customized `Comparator`. If we don't do this, run the program in the JDK17 environment will report an exception: ```java Caused by: java.lang.AssertionError: Expect exception msg contains 'query wait timeout', but meet 'java.sql.SQLException: ClassCastException, msg: class org.apache.doris.resource.workloadgroup.QueueToken cannot be cast to class java.lang.Comparable (org.apache.doris.resource.workloadgroup.QueueToken is in unnamed module of loader 'app'; java.lang.Comparable is in module java.base of loader 'bootstrap')' ```
morningman
pushed a commit
that referenced
this issue
Feb 1, 2024
Issue Number: #30484 This is because hadoop-client-api relies on hadoop-common. In the case of JDK17, it will still include hadoop-common.
yiguolei
pushed a commit
that referenced
this issue
Feb 1, 2024
Issue Number: #30484 This is because hadoop-client-api relies on hadoop-common. In the case of JDK17, it will still include hadoop-common.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Search before asking
TODO: file_cache
Description
No response
Solution
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: