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

bugfix: adjusts to use retry_on_conflict on bulk #215

Merged
merged 2 commits into from
Jan 19, 2023

Conversation

nicolascb
Copy link
Contributor

Description

Bug fix.

Adjust to set retry_on_conflict when using bulk indexer.

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.

@nicolascb nicolascb force-pushed the fix/bulk-retry-on-conflict branch 2 times, most recently from ead387d to 4a179dd Compare January 17, 2023 11:31
@nicolascb nicolascb changed the title fix: adjusts to use retry_on_conflict on bulk bugfix: adjusts to use retry_on_conflict on bulk Jan 17, 2023
marcosvfranca
marcosvfranca previously approved these changes Jan 17, 2023
Copy link

@marcosvfranca marcosvfranca left a comment

Choose a reason for hiding this comment

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

Approved, this is necessary when we work with simultaneous updates!

@dblock
Copy link
Member

dblock commented Jan 17, 2023

Thank you! Can you please add a unit test for this, since we've visibly introduced a bug?

Signed-off-by: Nicolas Barbosa <nicolas.barbosa@fretebras.com.br>
@nicolascb
Copy link
Contributor Author

hello @dblock,

I added a unit test for this case, can you review again please?

@dblock
Copy link
Member

dblock commented Jan 18, 2023

Looking good! I unblocked tests. Add an entry to https://github.com/opensearch-project/opensearch-go/blob/main/CHANGELOG.md and I think this will be good to go assuming tests pass. Thank you.

Signed-off-by: Nicolas Barbosa <nicolas.barbosa@fretebras.com.br>
@nicolascb
Copy link
Contributor Author

@dblock done =D

@VachaShah
Copy link
Collaborator

@dblock done =D

Thank you @nicolascb! Unblocking the tests.

Copy link
Collaborator

@VachaShah VachaShah left a comment

Choose a reason for hiding this comment

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

Thank you @nicolascb for fixing this!

@dblock dblock merged commit e38562a into opensearch-project:main Jan 19, 2023
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.

4 participants