-
Notifications
You must be signed in to change notification settings - Fork 706
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
feat: modify_refresh_interval flag in opensearch index_documents #2980
feat: modify_refresh_interval flag in opensearch index_documents #2980
Conversation
related to #2981 |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
awswrangler/opensearch/_write.py
Outdated
@@ -504,6 +504,7 @@ def index_documents( | |||
initial_backoff: int | None = None, | |||
max_backoff: int | None = None, | |||
use_threads: bool | int = False, | |||
modify_refresh_interval: bool = True, |
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.
Looks good, but perhaps enable_refresh_interval
is 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.
sure... whatever works for you...
pushed the changes...
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Feature
Detail
add
modify_refresh_interval
argument to opensearch'sindex_documents()
when set to
False
it won't try to modify refresh interval.This argument is needed to be set to
False
if multiple workers write to the same index, which might disable refresh-interval due to race condition.it's also possible that the backend role is not allowed to modify index settings (
indices:admin/settings/update
)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.