Skip to content
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

[Backport 1.x] Fix illegal reflective access warning from protostuff #389

Merged
merged 1 commit into from
Mar 2, 2022

Conversation

opensearch-trigger-bot[bot]
Copy link

Backport 9315233 from #373

When using prostuff 1.7.4 under java9+ we get an Illegal reflective access warning due to protostuff 1.7.4's incompatibility with java9+.  The issue is solved in protostuff/protostuff@b6ad96f  and will be available in 1.8.0. Since  protostuff 1.8.0 is not released, this PR built 1.8.0 packages and made AD depend on the local packages directly. With the change, the illegal reflective access is gone.

Testing done:
1. Tested both single-stream and HCAD real-time detectors.
2. Tested backward compatibility: start a 1.2.0 cluster with protostuff 1.7.4, start detectors and wait for model checkpoints to be generated.  Reinstall AD plugin with locally packaged protostuff 1.8.0. Verified tha old model can come up and detectors can produce results.

Signed-off-by: Kaituo Li <kaituo@amazon.com>
(cherry picked from commit 9315233)
@ohltyler ohltyler requested review from ohltyler and amitgalitz March 2, 2022 00:02
@ohltyler ohltyler merged commit 4e91dea into 1.x Mar 2, 2022
@ohltyler ohltyler deleted the backport/backport-373-to-1.x branch March 2, 2022 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants