-
Notifications
You must be signed in to change notification settings - Fork 25.2k
append index name for the source of the cluster put-mapping task #52690
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
Conversation
Pinging @elastic/es-search (:Search/Mapping) |
Pinging @elastic/es-distributed (:Distributed/Task Management) |
There was a problem hiding this 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.
server/src/main/java/org/elasticsearch/cluster/metadata/MetaDataMappingService.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/elasticsearch/cluster/metadata/MetaDataMappingServiceTests.java
Outdated
Show resolved
Hide resolved
@elasticmachine test this please |
@elasticmachine update branch |
@elasticmachine test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @zhanghezhen
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