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

Fix meta version of task index mapping #50363

Merged
merged 1 commit into from
Dec 20, 2019

Conversation

romseygeek
Copy link
Contributor

The built-in task index mapping has a version field in its metadata, so that
the TaskResultsService can check to see if it needs to update mappings when
a new task result is stored. #48393 updated this version in TaskResultsService
but omitted to change the version in the mapping itself, so a mapping update
is applied every time a new task result is stored.

This commit updates the mapping version so that it corresponds to the version
in TaskResultsService.

@romseygeek romseygeek added >bug :Search Foundations/Mapping Index mappings, including merging and defining field types :Distributed Coordination/Task Management Issues for anything around the Tasks API - both persistent and node level. v7.6.0 v7.5.2 labels Dec 19, 2019
@romseygeek romseygeek self-assigned this Dec 19, 2019
@elasticmachine
Copy link
Collaborator

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

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Task Management)

@romseygeek
Copy link
Contributor Author

Note that this is targeted to 7x as the fix for master is included in #50359

Copy link
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

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

LGTM. Nice catch, thanks @romseygeek

@romseygeek romseygeek merged commit 3cdc23e into elastic:7.x Dec 20, 2019
@romseygeek romseygeek deleted the bugfix/7x-task-mapping branch December 20, 2019 09:44
romseygeek added a commit that referenced this pull request Dec 20, 2019
The built-in task index mapping has a version field in its metadata, so that
the TaskResultsService can check to see if it needs to update mappings when
a new task result is stored. #48393 updated this version in TaskResultsService
but omitted to change the version in the mapping itself, so a mapping update
is applied every time a new task result is stored.

This commit updates the mapping version so that it corresponds to the version
in TaskResultsService.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Distributed Coordination/Task Management Issues for anything around the Tasks API - both persistent and node level. :Search Foundations/Mapping Index mappings, including merging and defining field types v7.5.2 v7.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants