-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[AMBARI-26142] JDK17 support for Ambari #3837
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
Conversation
|
@sandeep318kumar Excellent work. Since upgrading to JDK 17 is a major change, it might be reasonable to split this into multiple PRs. |
e86ce15 to
561b06b
Compare
561b06b to
db624e4
Compare
There are multiple build failures, we need to resolve all build failures and test failures that's why keeping everything in one PR. |
db624e4 to
0b7fd64
Compare
|
Tests are passing locally. Ran 296 tests in 13.655s OKTotal run:352 |
|
@sandeep318kumar I have created an infra issue, and now we just need to wait for the infra team’s support and resolution. You can also check the issue to track its progress. https://issues.apache.org/jira/browse/INFRA-26157 |
|
@JiaLiangC @virajjasani |
because only committer or pmc member can update jenkinsfile, i will temporarily change the permission. |
|
|
|
@JiaLiangC Thanks! |
3601572 to
c16f7cd
Compare
|
@sandeep318kumar Hello, |
@virajjasani Any idea on your side? |
|
@JiaLiangC |
|
@sandeep318kumar I mean: Upgrade JDK to 17 and Spring to 6, both should be merged into a new branch. Once the new branch is thoroughly tested, it can be merged into master. Previously, I merged a large PR for the frontend jquery upgrade directly into master, which caused many bugs in the ambari frontend. Therefore, for significant changes involving APIs, it's recommended to first merge into a new branch, test thoroughly, and then merge into master. Spring indeed needs to wait for JDK 17 to be completed first. |
|
If there are no objections, I will create a new branch specifically for handling JDK and Spring upgrades, as well as other related dependency upgrade PRs |
|
The idea of working on a new branch seems good. @sandeep318kumar Thanks for the patch, we can resume the work on the feature branch? |
|
@JiaLiangC @virajjasani New feature branch is good for working on this. Can you create a new feature branch for this. |
|
@sandeep318kumar I've created a new branch named upgrade/jdk-spring-dependencies for handling JDK, Spring, and other related dependency upgrades. We can use this branch for any relevant updates and pull requests. |
|
@sandeep318kumar Thank you for your contribution. I ran the unit tests and found several failing tests, as well as some tests that hang. It seems like fixing all of these issues will be a significant amount of work. Could you please submit your code to the |
c16f7cd to
dcc0edb
Compare
|
Sure @JiaLiangC, |
|
@sandeep318kumar I will close this PR because it is a duplicate of #3851, which has already been merged. |
|
Closing this PR as the duplicate PR #3851 has been already merged. |




[AMBARI-26142] JDK17 support for Ambari
Co-authored-by: Mohammad Arshad [email protected]
What changes were proposed in this pull request?
Changed java version in pom from 1.8 to 17
Changed maven-shade-plugin version to 3.5.1 to fix jar shading related issue
Changed phonix version to 5.1.3.3.2.2.4-13 so correct hadoop dependency jar is used.
Changed maven-failsafe-plugin to 3.2.5 to fix build issue
Changed eclipselink version from 2.6.2 to 2.7.14
Changed guice version from 4.1.0 to 5.1.0
Made changes to adapt new API
Made change to handle API behavior change
Using latest power mock 2.0.9 and corresponding, mockito 2.28.2 and easymock 5.2.0
Removed Unnecessary Subbing which is not allowed now.
Corrected reflection usages
Fixed Duplicate column name UPGRADE_ID; SQL statement
Corrected few test cases, rewritten PersistServiceTest
(Please fill in changes proposed in this fix)
How was this patch tested?
TESTING is pending
(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)
Please review Ambari Contributing Guide before opening a pull request.