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

change request type to ActionRequest BaseGetConfigTransportAction to … #1221

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

Hailong-am
Copy link
Contributor

…fix class cast exception

Description

  1. change request type to ActionRequest BaseGetConfigTransportAction to fix class cast exception. ActionRequest is the basic class and defined in core, so the class loader for this class will be OpenSearch core instead of Ad plugin. If we change to GetConfigRequest that defined in AD plugin, the class loader for this class will Ad plugin class loader in Ad plugin, and skills plugin class loader in Skill plugin, that will cause class cast exception.

please note, skill plugin don't depends on Ad plugin, so they don't have parent and child relationship.

  1. recencyEmphasis, seasonIntervals, historyIntervals are Integer type, basically they could be null, change to read/write Optional.

  2. try to add a unit test for AnomalyDetector serialization and deserialization

Issues Resolved

#1220

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@kaituo kaituo merged commit 9eed2ff into opensearch-project:main Jun 5, 2024
27 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 5, 2024
…fix class cast exception (#1221)

Signed-off-by: Hailong Cui <[email protected]>
(cherry picked from commit 9eed2ff)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
kaituo pushed a commit that referenced this pull request Jun 5, 2024
…fix class cast exception (#1221) (#1222)

(cherry picked from commit 9eed2ff)

Signed-off-by: Hailong Cui <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants