Skip to content

Conversation

@jbaiera
Copy link
Member

@jbaiera jbaiera commented Feb 3, 2025

When an ingest failure occurs against a data stream, if the data stream's failure store redirection is enabled it will capture the failure and report that the failure store was used in that document's response to the client. If the failure store is not enabled, we report to the client that we could have stored the failure but that we did not. There was a gap in this functionality in the ingest service: On a failure, if the document was determined to not go to the failure store, that context was discarded when the document was passed to the on failure handler. This PR updates the on failure handler to accept the additional context required to report to the client whether or not the document could have been rerouted if failure store was enabled or not.

@elasticsearchmachine elasticsearchmachine added v9.1.0 needs:triage Requires assignment of a team area label labels Feb 3, 2025
@jbaiera jbaiera added :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP :Data Management/Data streams Data streams and their lifecycles labels Feb 3, 2025
@elasticsearchmachine elasticsearchmachine added Team:Data Management Meta label for data/management team and removed needs:triage Requires assignment of a team area label labels Feb 3, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

1 similar comment
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@jbaiera jbaiera requested review from gmarouli and nielsbauman and removed request for nielsbauman February 3, 2025 21:29
Copy link
Contributor

@gmarouli gmarouli 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 for fixing this @jbaiera , totally missed this path in the code!

@jbaiera jbaiera added the v8.19.0 label Feb 4, 2025
@jbaiera jbaiera merged commit 59fc383 into elastic:main Feb 4, 2025
17 checks passed
@jbaiera jbaiera deleted the failure-store-fix-ingest-status branch February 5, 2025 07:06
@jbaiera
Copy link
Member Author

jbaiera commented Feb 21, 2025

💚 All backports created successfully

Status Branch Result
8.x

Questions ?

Please refer to the Backport tool documentation

jbaiera added a commit to jbaiera/elasticsearch that referenced this pull request Feb 21, 2025
…ut failure store enabled (elastic#121544)

Updates the on failure handler to accept the additional context required to report to the client whether
or not the document could have been rerouted if failure store was enabled.

---------

Co-authored-by: elasticsearchmachine <[email protected]>
(cherry picked from commit 59fc383)
elasticsearchmachine pushed a commit that referenced this pull request Feb 21, 2025
… without failure store enabled (#121544) (#123170)

* Return failure store status on ingest failures for data streams without failure store enabled (#121544)

Updates the on failure handler to accept the additional context required to report to the client whether
or not the document could have been rerouted if failure store was enabled.

---------

Co-authored-by: elasticsearchmachine <[email protected]>
(cherry picked from commit 59fc383)

* fix test compile

---------

Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Data Management/Data streams Data streams and their lifecycles :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >non-issue Team:Data Management Meta label for data/management team v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants