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

[Extensions] Migrate ADResultBulkAction/TransportAction and Multi-Entity real time analysis #876

Merged
merged 23 commits into from
Apr 24, 2023

Conversation

joshpalis
Copy link
Member

Description

Migrates HCAD realtime analysis

Issues Resolved

opensearch-project/opensearch-sdk-java#684

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.

joshpalis added 19 commits April 5, 2023 21:49
…omponents for ADResultAction, EntityResultAction, RCFResultAction. Uncomments JS dependent code

Signed-off-by: Joshua Palis <jpalis@amazon.com>
Signed-off-by: Joshua Palis <jpalis@amazon.com>
Signed-off-by: Joshua Palis <jpalis@amazon.com>
Signed-off-by: Joshua Palis <jpalis@amazon.com>
Signed-off-by: Joshua Palis <jpalis@amazon.com>
Signed-off-by: Joshua Palis <jpalis@amazon.com>
Signed-off-by: Joshua Palis <jpalis@amazon.com>
Signed-off-by: Joshua Palis <jpalis@amazon.com>
… for HCAD. Preparational work for HCAD results, invokes EntityResultAction in pagelistener

Signed-off-by: Joshua Palis <jpalis@amazon.com>
… found message rather than catching OpenSearchStatusException

Signed-off-by: Joshua Palis <jpalis@amazon.com>
Signed-off-by: Joshua Palis <jpalis@amazon.com>
Signed-off-by: Joshua Palis <jpalis@amazon.com>
…Util and opting to use sdkRestClient.bulk() instead

Signed-off-by: Joshua Palis <jpalis@amazon.com>
@joshpalis joshpalis marked this pull request as ready for review April 21, 2023 23:48
@joshpalis joshpalis requested review from a team, owaiskazi19, dbwiddis and vibrantvarun April 21, 2023 23:48
@owaiskazi19 owaiskazi19 changed the title Migrate ADResultBulkAction/TransportAction and Multi-Entity real time analysis [Extensions] Migrate ADResultBulkAction/TransportAction and Multi-Entity real time analysis Apr 24, 2023
Copy link
Member

@owaiskazi19 owaiskazi19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM! Minor nitpicks


if (bulkResponse.errors()) {
StringBuilder sb = new StringBuilder();
sb.append("failure in bulk execution:");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sb.append("failure in bulk execution:");
sb.append("Failed to prepare request to bulk index anomaly results:");

ImmutableOpenMap<String, IndexMetadata> immutableOpenMap = ImmutableOpenMap
.<String, IndexMetadata>builder()
.fPut(
Map<String, IndexMetadata> immutableOpenMap = new HashMap<>();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the change is coming from OpenSearch but we shouldn't call the variable name as immutableOpenMap anymore. How about indexMap or if you have a better name?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indexMap sounds good, Ill go ahead and change this

Signed-off-by: Joshua Palis <jpalis@amazon.com>
@owaiskazi19
Copy link
Member

@joshpalis build failed. Can you look into it?

@joshpalis
Copy link
Member Author

@owaiskazi19 yes I just need to fix the failing test classes

@dbwiddis
Copy link
Member

LGTM other than the failing tests.

Signed-off-by: Joshua Palis <jpalis@amazon.com>
@joshpalis joshpalis merged commit e56299b into opensearch-project:feature/extensions Apr 24, 2023
@joshpalis joshpalis deleted the multi branch April 24, 2023 20:35
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