-
Notifications
You must be signed in to change notification settings - Fork 207
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
For custom index type, create ISM policy on OpenSearch if ism_policy_file parameter is set. #433
Conversation
…file parameter is set. Signed-off-by: Han Jiang <[email protected]>
@jianghancn Can you please fix the failing integration tests? |
…an pass Signed-off-by: Han Jiang <[email protected]>
…field is found invalid. Signed-off-by: Han Jiang <[email protected]>
Now they are fixed. 👍 |
Looking for a second reviewer, thanks. |
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.
Just one minor comment. LGTM
|
||
private final RestHighLevelClient restHighLevelClient; | ||
private final String policyName; | ||
private final String policyFileWithIsmTemplate; | ||
private final String policyFile; | ||
private final String policyFileWithoutIsmTemplate; | ||
|
||
public IsmPolicyManagement(final RestHighLevelClient restHighLevelClient, |
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.
Nit: if this constructor is only invoked by IndexManagerFactory for trace-analytics, we should change the modifier to protected
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.
George, Thanks a lot for the review! Good point, we should be able to change it from public to package private. Will make this change in an upcoming pull request.
…file parameter is set. (opensearch-project#433) * For custom index type, create ISM policy on OpenSearch if ism_policy_file parameter is set. Signed-off-by: Han Jiang <[email protected]> * Remove index template from test-custom-index-policy-file.json so IT can pass Signed-off-by: Han Jiang <[email protected]> * To be backward compatible, drop ISM template from policy file if the field is found invalid. Signed-off-by: Han Jiang <[email protected]>
Signed-off-by: Han Jiang [email protected]
Description
For custom index type, create ISM policy on OpenSearch server if ism_policy_file parameter is set in data prepper pipeline configuration.
Update Proposal
This was part of a list of changes proposed in the RFC doc
Check List
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.