HDDS-13656. Fix aspectj settings for Java 11+#9010
Conversation
adoroszlai
left a comment
There was a problem hiding this comment.
Thanks @symious for the patch.
|
@adoroszlai Updated, PTAL. |
adoroszlai
left a comment
There was a problem hiding this comment.
Thanks @symious for updating the patch, LGTM.
errose28
left a comment
There was a problem hiding this comment.
Thanks for fixing this @symious, I had been looking in this area well recently. Can you run a test matrix on your fork that takes each jdk version supported by our CI and runs it through the full test matrix to make sure there are no runtime issues? Although our current CI tests compile with multiple versions, the matrix is only run with the jdk21 build.
errose28
left a comment
There was a problem hiding this comment.
LGTM, @adoroszlai would you like to take another look?
|
Also as mentioned above, @symious it would be good to run the earlier jdk builds through the whole CI pipeline on your fork to make sure upgrade tests still run fine in those versions. |
pom.xml
Outdated
| <!-- supported since Java 9 --> | ||
| <maven.compiler.release>${javac.version}</maven.compiler.release> |
There was a problem hiding this comment.
Also set in global properties, so I guess we can remove the java9-or-later profile.
@errose28 Do you mean use earlier ozone-runner like this? https://github.com/symious/ozone/actions/runs/17606869330, https://github.com/symious/ozone/actions/runs/17606886128, but the runners are out of date. |
|
Ah I didn't realize the runner only provided one jdk version. I think we should have enough coverage by just running the unit and integration tests in older jdk versions and skipping the acceptance tests. |
|
With help from cursor I tried some modified workflows that ran the integration tests in a matrix based on jdk version and the produced code and test output looks correct to me. There's some unrelated race condition in our build which I was unable to fix. Some of the splits fail with messages like Other than that most of the runs seem to be passing.
I'm not sure if it's worth trying to get these to run properly or we should call it good enough and merge this. |
(cherry picked from commit a00f6bd)
What changes were proposed in this pull request?
The jdk version is set to 1.8 by aspect-maven-plugin, this ticket is fix the settings related to aspectj so that we can use user specified jdk for compilation.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-13656
How was this patch tested?
The result should be based on "javac.version", thus not stick to 52.