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

append index name for the source of the cluster put-mapping task #52690

Merged
merged 3 commits into from
Feb 27, 2020

Conversation

zhanghezhen
Copy link
Contributor

@zhanghezhen zhanghezhen commented Feb 24, 2020

When there are a lot of pending tasks with put-mapping in the cluster, the "_cat/pending_tasks" API result is too simple to quickly know which index is put-mapping.
Since the task desc is obtained from the 'source' field of task, we can append the index name after the source field when pending task is submitted, it is helpful for us to quickly locate the put-mapping index

@gwbrown gwbrown added :Distributed/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 labels Feb 25, 2020
@elasticmachine
Copy link
Collaborator

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

@elasticmachine
Copy link
Collaborator

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

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.

@zhanghezhen thanks for your PR. It looks like we can simplify it a bit, see comments.

@henningandersen
Copy link
Contributor

@elasticmachine test this please

@henningandersen
Copy link
Contributor

@elasticmachine update branch

@henningandersen
Copy link
Contributor

@elasticmachine test this please

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, thanks @zhanghezhen

@henningandersen henningandersen merged commit 99120a7 into elastic:master Feb 27, 2020
henningandersen pushed a commit that referenced this pull request Feb 27, 2020
)

Add index name(s) into the source for the cluster state update done when putting mapping.
This ensures that the pending tasks API includes information on source indices.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Task Management Issues for anything around the Tasks API - both persistent and node level. >enhancement :Search Foundations/Mapping Index mappings, including merging and defining field types v7.7.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants