"shard started" should show index and shard ID (#25157)

When the cluster state is updated with Shard Started entries, it simply adds "shard-started" as the source of the change.

This adds the index name and shard ID so that we can see who/what is spamming the changes when the index creation step has already left the cluster state.
This commit is contained in:
Chris Earle 2017-06-09 14:52:42 -04:00 committed by GitHub
parent b8fef3309c
commit af7b479e12
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ public class ShardStateAction extends AbstractComponent {
public void messageReceived(ShardEntry request, TransportChannel channel) throws Exception {
logger.debug("{} received shard started for [{}]", request.shardId, request);
clusterService.submitStateUpdateTask(
"shard-started",
"shard-started " + request,
request,
ClusterStateTaskConfig.build(Priority.URGENT),
shardStartedClusterStateTaskExecutor,