Skip to content

Conversation

@mromaios
Copy link
Contributor

This PR rephrases the InferenceError message that can occur while ingesting semantic_text fields to include additional debugging details.

Copy link
Contributor

@Mikep86 Mikep86 left a comment

Choose a reason for hiding this comment

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

Thanks for the quick change! One note about an additional test change we need.

itemIndex,
new InferenceException(
"Insufficient memory available to update source on document [" + indexRequest.getIndexRequest().id() + "]",
"Unable to insert inference results into document ["
Copy link
Contributor Author

Choose a reason for hiding this comment

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

❓ Do we want to also mention update source here, or is it fine unifying the error msg?

Copy link
Contributor

Choose a reason for hiding this comment

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

In this case, I think it's fine that we have a unified error message. The fact that this error is thrown prior to us actually updating source is an implementation detail we don't want to leak.

@mromaios mromaios added :SearchOrg/Relevance Label for the Search (solution/org) Relevance team >enhancement labels Jul 18, 2025
@mromaios mromaios self-assigned this Jul 18, 2025
@mromaios mromaios marked this pull request as ready for review July 18, 2025 12:20
@elasticsearchmachine elasticsearchmachine added Team:SearchOrg Meta label for the Search Org (Enterprise Search) Team:Search - Relevance The Search organization Search Relevance team labels Jul 18, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-eng (Team:SearchOrg)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-relevance (Team:Search - Relevance)

Copy link
Contributor

@Mikep86 Mikep86 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the quick work!

itemIndex,
new InferenceException(
"Insufficient memory available to update source on document [" + indexRequest.getIndexRequest().id() + "]",
"Unable to insert inference results into document ["
Copy link
Contributor

Choose a reason for hiding this comment

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

In this case, I think it's fine that we have a unified error message. The fact that this error is thrown prior to us actually updating source is an implementation detail we don't want to leak.

Copy link
Member

@kderusso kderusso left a comment

Choose a reason for hiding this comment

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

LGTM!

@mromaios
Copy link
Contributor Author

mromaios commented Jul 18, 2025

Thanks for the prompt review both! Quick question when you get the chance: should this be backported to 9.1 and 8.19?

@Mikep86
Copy link
Contributor

Mikep86 commented Jul 18, 2025

@mromaios I don't think this should be backported as it's an enhancement. We could stretch this to say it's a bug fix, but it's borderline.

@mromaios
Copy link
Contributor Author

Thanks @Mikep86, following the enhancement route.

@mromaios mromaios merged commit a786c93 into elastic:main Jul 18, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>enhancement :SearchOrg/Relevance Label for the Search (solution/org) Relevance team Team:Search - Relevance The Search organization Search Relevance team Team:SearchOrg Meta label for the Search Org (Enterprise Search) v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants