Skip to content

Updating error message for missing shards in open_point_in_time action#111320

Merged
pmpailis merged 6 commits intoelastic:mainfrom
pmpailis:updating_log_message_for_open_point_in_time_action
Jul 29, 2024
Merged

Updating error message for missing shards in open_point_in_time action#111320
pmpailis merged 6 commits intoelastic:mainfrom
pmpailis:updating_log_message_for_open_point_in_time_action

Conversation

@pmpailis
Copy link
Copy Markdown
Contributor

In this PR we update the exception message for the open_point_in_time action to avoid suggesting the use of allow_partial_search_results as it is not currently supported, and explicitly set to false for PIT.

Relates to #103165 and this PR comment.

@pmpailis pmpailis added >non-issue :Search Foundations/Search Catch all for Search Foundations labels Jul 26, 2024
@elasticsearchmachine elasticsearchmachine added v8.16.0 Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch labels Jul 26, 2024
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@benwtrent benwtrent requested a review from dnhatn July 26, 2024 11:28
Copy link
Copy Markdown
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

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

I left an optional comment, but LGTM.

) {
@Override
protected String missingShardsErrorMessage(StringBuilder missingShards) {
return "Search rejected due to missing shards. [open_point_in_time] action requires all shards to be available.";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe remove the prefix "Search rejected due to missing shards." and add "missing shards[" + missingShards +"]" at the end of the message?

@pmpailis pmpailis merged commit 76c4e37 into elastic:main Jul 29, 2024
@pmpailis pmpailis deleted the updating_log_message_for_open_point_in_time_action branch May 27, 2025 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v8.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants