-
Notifications
You must be signed in to change notification settings - Fork 202
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
ENH: support index template for serverless #3071
ENH: support index template for serverless #3071
Conversation
Signed-off-by: George Chen <[email protected]>
final String enabled = getISMEnabled(response); | ||
return enabled != null && enabled.equals("true"); | ||
} catch (OpenSearchException ex) { | ||
if (NON_RETRYABLE_HTTP_STATUS.contains(ex.status())) { |
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.
Should we have a stronger check here? This has any non-retryable indicating the ISM is disabled. What if the user lacks access? We might want that error to halt the sink.
...main/java/org/opensearch/dataprepper/plugins/sink/opensearch/index/AbstractIndexManager.java
Outdated
Show resolved
Hide resolved
Signed-off-by: George Chen <[email protected]>
Signed-off-by: George Chen <[email protected]>
Signed-off-by: George Chen <[email protected]>
We can ignore the WhiteSource checks. This PR does not change our dependencies. Likely it is failing because of the age of the PR and the branch. |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.5 2.5
# Navigate to the new working tree
cd .worktrees/backport-2.5
# Create a new branch
git switch --create backport/backport-3071-to-2.5
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 b35ffc28f5999300f956090a86e51d06842fb3d2
# Push it to GitHub
git push --set-upstream origin backport/backport-3071-to-2.5
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.5 Then, create a pull request where the |
* ENH: support index template for serverless Signed-off-by: George Chen <[email protected]>
* ENH: support index template for serverless Signed-off-by: George Chen <[email protected]> (cherry picked from commit 73a80a1)
* ENH: support index template for serverless Signed-off-by: George Chen <[email protected]> (cherry picked from commit 73a80a1)
Description
This PR resurrects support for composable index template for opensearch sink serverless ingestion. Thus allowing user to configure
index_type: custom
underserverless: true
.Note: Amazon OpenSearch Serverless does not support ISM policy plugin as well as the /_cluster/settings API. Thus the fix on
checkISMEnabled
.Issues Resolved
#3048
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.