-
Notifications
You must be signed in to change notification settings - Fork 73
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
[Extensions] Migrate ADResultBulkAction/TransportAction and Multi-Entity real time analysis #876
Conversation
…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>
Signed-off-by: Joshua Palis <jpalis@amazon.com>
There was a problem hiding this 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:"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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<>(); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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>
@joshpalis build failed. Can you look into it? |
@owaiskazi19 yes I just need to fix the failing test classes |
LGTM other than the failing tests. |
Signed-off-by: Joshua Palis <jpalis@amazon.com>
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.