-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Bug][DISTRIBUTION][2.0.0]: Plugin build fails for JDK lower than 17 (11 and 14) #2581
Comments
This seems like a core issue, will transfer to core repo once confirmed. |
moved to opensearch repo, so closing this issue here for now. |
Looks like this PR #2407 was causing the failures on plugin. When I revert this PR, build was successful. I will further dig and see which change in PR caused this and update more info here |
This OpenSearch/buildSrc/src/main/java/org/opensearch/gradle/testclusters/OpenSearchNode.java Line 913 in cc0e66b
|
The reaper code was taken out when we re-introduced compatibility with JDK8, then put back in #2407. If the reaper is broken, it should just be fixed. |
Is this error saying that the code did not use the correct source/target version when built with JDK17? @reta amirite?
|
@dblock looking, the source/runtime level should be 11 |
@dblock I think I figured it out, the reaper does not inherit source / runtime setting, uses whatever JDK it is being built with, fixing that |
Thank you @reta I tried your fix in local. It fixed this issue. |
@reta You are a rockstar :) |
Describe the bug
Build for kNN plugin PRs fail when JDK 11 or JDK 14 has been used.
Example of failed build - https://github.com/opensearch-project/k-NN/runs/5668411237?check_suite_focus=true.
Error in the log:
reaper.log:
More details exception is here - https://gist.github.com/martin-gaievski/ea1d3918e940c348f5e13dc5f9cc27a6.
The error comes at the very end of the build, when all tasks are finished successfully.
Locally I'm able to build is successfully for JDK 17, same as a github action has been cancelled as soon as build for JDK 14 fails.
This PR that uses OpenSearch 2.0.0-alpha1-SNAPSHOT, with added support for the build.version_qualifier.
To reproduce
Feel free to restart https://github.com/opensearch-project/k-NN/runs/5668411237?check_suite_focus=true failed task for JDK 11 or JDK 14, or download https://github.com/martin-gaievski/k-NN/tree/integrate/opensearch20-lucene91 and try to build is locally with JDK 14.
Expected behavior
Build should finish successfully, same as for JDK 17.
The text was updated successfully, but these errors were encountered: