Skip to content

Throw IAE for runtime mappings in _field_caps for older nodes#69722

Merged
cbuescher merged 2 commits intoelastic:masterfrom
cbuescher:fix-fieldcaps-throwbefore7-12
Mar 1, 2021
Merged

Throw IAE for runtime mappings in _field_caps for older nodes#69722
cbuescher merged 2 commits intoelastic:masterfrom
cbuescher:fix-fieldcaps-throwbefore7-12

Conversation

@cbuescher
Copy link
Copy Markdown
Member

Typically we silently ignore nodes below a certain version that don't support a
specific feature when serializing requests between nodes. With runtime fields we
chose to throw errors instead when one of the nodes a search request is sent to
has a version that does not support the runtime fields feature. This change adds
the same behaviour for support of the "runtime_mappings" section introduced in #68904
in the "_field_caps" API.

Relates to #68904

Typically we silently ignore nodes below a certain version that don't support a
specific feature when serializing requests between nodes. With runtime fields we
chose to throw errors instead when one of the nodes a search request is sent to
has a version that does not support the runtime fields feature. This change adds
the same behaviour for support of the "runtime_mappings" section introduced in elastic#68904
in the "_field_caps" API.

Relates to elastic#68904
@cbuescher cbuescher added >bug :Search Foundations/Mapping Index mappings, including merging and defining field types v8.0.0 v7.12.0 labels Mar 1, 2021
@cbuescher cbuescher requested a review from javanna March 1, 2021 16:27
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Mar 1, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@javanna javanna added the v7.13.0 label Mar 1, 2021
Copy link
Copy Markdown
Contributor

@javanna javanna 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!

@cbuescher cbuescher merged commit d6aa939 into elastic:master Mar 1, 2021
cbuescher pushed a commit that referenced this pull request Mar 1, 2021
Typically we silently ignore nodes below a certain version that don't support a
specific feature when serializing requests between nodes. With runtime fields we
chose to throw errors instead when one of the nodes a search request is sent to
has a version that does not support the runtime fields feature. This change adds
the same behaviour for support of the "runtime_mappings" section introduced in #68904
in the "_field_caps" API.

Relates to #68904
cbuescher pushed a commit that referenced this pull request Mar 2, 2021
Typically we silently ignore nodes below a certain version that don't support a
specific feature when serializing requests between nodes. With runtime fields we
chose to throw errors instead when one of the nodes a search request is sent to
has a version that does not support the runtime fields feature. This change adds
the same behaviour for support of the "runtime_mappings" section introduced in #68904
in the "_field_caps" API.

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

Labels

>bug :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Meta label for search team v7.12.0 v7.13.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants