Skip to content

Commit 99120a7

Browse files
authored
Append index name for the source of the cluster put-mapping task (#52690)
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.
1 parent 31b2987 commit 99120a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/main/java/org/elasticsearch/cluster/metadata/MetaDataMappingService.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.elasticsearch.cluster.service.ClusterService;
3434
import org.elasticsearch.common.Nullable;
3535
import org.elasticsearch.common.Priority;
36+
import org.elasticsearch.common.Strings;
3637
import org.elasticsearch.common.compress.CompressedXContent;
3738
import org.elasticsearch.common.inject.Inject;
3839
import org.elasticsearch.common.unit.TimeValue;
@@ -326,7 +327,7 @@ private ClusterState applyRequest(ClusterState currentState, PutMappingClusterSt
326327
}
327328

328329
public void putMapping(final PutMappingClusterStateUpdateRequest request, final ActionListener<ClusterStateUpdateResponse> listener) {
329-
clusterService.submitStateUpdateTask("put-mapping",
330+
clusterService.submitStateUpdateTask("put-mapping " + Strings.arrayToCommaDelimitedString(request.indices()),
330331
request,
331332
ClusterStateTaskConfig.build(Priority.HIGH, request.masterNodeTimeout()),
332333
putMappingExecutor,

0 commit comments

Comments
 (0)