Skip to content

Conversation

@elastic-vault-github-plugin-prod
Copy link

@elastic-vault-github-plugin-prod elastic-vault-github-plugin-prod bot commented Nov 25, 2025

Backport 6ea4a8a from #615.

BEGIN_COMMIT_OVERRIDE
fix: Notify items if an error occurs in bulk indexer (#615) (#1058)
END_COMMIT_OVERRIDE

@cla-checker-service
Copy link

cla-checker-service bot commented Nov 25, 2025

💚 CLA has been signed

@prodsecmachine
Copy link

prodsecmachine commented Nov 25, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

* notify items if an error occurs in bulk indexer

* fix message error on line 577

* test: OnFailure is called per item

* refactor: use a method to handle errors

* makes code DRYer
* fixes bug where `res.IsError()` resulted in BulkIndexerItem.OnError receiving a nil `err`

---------

Co-authored-by: Matt Devy <matt.devy@elastic.co>
(cherry picked from commit 6ea4a8a)
@MattDevy MattDevy force-pushed the backport-615-to-9.1 branch from 489eb55 to 3ab2556 Compare November 25, 2025 11:57
@MattDevy MattDevy merged commit 22d2e7c into 9.1 Nov 25, 2025
16 checks passed
@MattDevy MattDevy deleted the backport-615-to-9.1 branch November 25, 2025 13:10
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