Skip to content

Conversation

@flash1293
Copy link
Contributor

Backport

This will backport the following commits from main to 9.2:

Questions ?

Please refer to the Backport tool documentation

Currently, the `bulk` method of the storage adapter is not failing if
one of the operations fails. This can hide problems, e.g. if saving a
stream would cause the `create` operation in the bulk call to fail, it
would fail silently and tell the user saving worked fine.

With the change on this PR, the error is passed back to the user
correctly (had to mess with the mappings of the index to provoke an
error, not sure whether it can be triggered accidentally):
<img width="309" height="492" alt="Screenshot 2025-11-13 at 14 08 36"
src="https://github.com/user-attachments/assets/aaba6185-23e3-475f-9545-fd595b5557e2"
/>

This is a breaking change of the storage adapter interface, but judging
from the current usages we don't want this kind of error silently being
ignored - throwing an error makes sure the problem is visible.

(cherry picked from commit 4e7c4f9)
@flash1293 flash1293 added the backport This PR is a backport of another PR label Nov 18, 2025
@flash1293 flash1293 enabled auto-merge (squash) November 18, 2025 15:21
@flash1293 flash1293 merged commit 9162246 into elastic:9.2 Nov 19, 2025
12 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/storage-adapter 76 80 +4
Unknown metric groups

API count

id before after diff
@kbn/storage-adapter 77 83 +6

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants