Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate ignore_throttled parameter #77864

Merged
merged 6 commits into from
Sep 16, 2021

Conversation

martijnvg
Copy link
Member

Backporting #77479 to 7.x branch.

Frozen indices are deprecated, which will make ignore_throttled obsolete.

Some changes to HLRC HLRC and related tests were required in order to deprecate ignore_throttled parameter:

  • Change HLRC request classes to set indices options initial value to null.
    This avoids sending the ignore_throttled parameter (and other indices options parameters)
    and therefore avoids the depracation warning header in the response. All these
    request classes had the indices options set to what is the defaukt in the corresponding
    action request class. So sending these indices options params was a noop, which is the same
    as not sending indices options parameters, which is what this change does.
  • For transport action request classes that are reused in the HLRC as request class,
    change the corresponding hlrc request converter to only send indices options params
    if the indices options are different than what the default is.
  • For tests that use a non default indices options, allow 'ignore_throttled is deprecated'
    warning.

Other changes:

  • A number of tests have been changed to allowed warning header for deprecated ignore_throttled parameter.
  • Some rest v7 compat yaml tests are temporary muted, but will be unmuted once this
    change has been backported.

Relates to #70192

Backporting elastic#77479 to 7.x branch.

Frozen indices are deprecated, which will make ignore_throttled obsolete.

Some changes to HLRC  HLRC and related tests were required in order to deprecate ignore_throttled parameter:
* Change HLRC request classes to set indices options initial value to null.
    This avoids sending the ignore_throttled parameter (and other indices options parameters)
    and therefore avoids the depracation warning header in the response. All these
    request classes had the indices options set to what is the defaukt in the corresponding
    action request class. So sending these indices options params was a noop, which is the same
    as not sending indices options parameters, which is what this change does.
* For transport action request classes that are reused in the HLRC as request class,
    change the corresponding hlrc request converter to only send indices options params
    if the indices options are different than what the default is.
* For tests that use a non default indices options, allow 'ignore_throttled is deprecated'
    warning.

Other changes:
* A number of tests have been changed to allowed warning header for deprecated ignore_throttled parameter.
* Some rest v7 compat yaml tests are temporary muted, but will be unmuted once this
    change has been backported.

Relates to elastic#70192
@martijnvg martijnvg added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Sep 16, 2021
@elasticsearchmachine elasticsearchmachine merged commit 704752b into elastic:7.x Sep 16, 2021
elasticsearchmachine pushed a commit that referenced this pull request Aug 23, 2022
…s options (#89469)

This adds a note about an unintended break in behavior for the HLRC with
regard to the indices options that are sent by default with requests.

Relates to #77864
dakrone added a commit to dakrone/elasticsearch that referenced this pull request Aug 23, 2022
…s options (elastic#89469)

This adds a note about an unintended break in behavior for the HLRC with
regard to the indices options that are sent by default with requests.

Relates to elastic#77864
elasticsearchmachine pushed a commit that referenced this pull request Aug 23, 2022
…s options (#89469) (#89559)

This adds a note about an unintended break in behavior for the HLRC with
regard to the indices options that are sent by default with requests.

Relates to #77864
@JackieJK
Copy link

Why I use 7.17.6 java client with elastic8.5 stil have "[ignore_throttled] parameter is deprecated"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v7.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants