Failed to put mappings on indices

hi
I created a new index for re-indexing and tried re-indexing, but I get the following error:

[DEBUG][o.e.a.a.i.m.p.TransportPutMappingAction] [node-01]  failed to put mappings on indices [[[ma_2022/mmRNrJPwRfutlNQs8Lk4sQ]]], type [inno_tech_center]
org.elasticsearch.cluster.metadata.ProcessClusterEventTimeoutException: failed to process cluster event (put-mapping) within 30s
        at org.elasticsearch.cluster.service.ClusterService$ClusterServiceTaskBatcher.lambda$null$0(ClusterService.java:255) ~[elasticsearch-5.6.3.jar:5.6.3]
        at java.util.ArrayList.forEach(ArrayList.java:1249) ~[?:1.8.0_131]
        at org.elasticsearch.cluster.service.ClusterService$ClusterServiceTaskBatcher.lambda$onTimeout$1(ClusterService.java:254) ~[elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:569) [elasticsearch-5.6.3.jar:5.6.3]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
[2022-08-02T22:06:39,520][DEBUG][o.e.a.a.i.m.p.TransportPutMappingAction] [node-01] failed to put mappings on indices [[[ma_2022/mmRNrJPwRfutlNQs8Lk4sQ]]], type [email]
org.elasticsearch.cluster.metadata.ProcessClusterEventTimeoutException: failed to process cluster event (put-mapping) within 30s
        at org.elasticsearch.cluster.service.ClusterService$ClusterServiceTaskBatcher.lambda$null$0(ClusterService.java:255) ~[elasticsearch-5.6.3.jar:5.6.3]
        at java.util.ArrayList.forEach(ArrayList.java:1249) ~[?:1.8.0_131]
        at org.elasticsearch.cluster.service.ClusterService$ClusterServiceTaskBatcher.lambda$onTimeout$1(ClusterService.java:254) ~[elasticsearch-5.6.3.jar:5.6.3]
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:569) [elasticsearch-5.6.3.jar:5.6.3]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
[2022-08-02T22:06:44,268][WARN ][o.e.c.s.ClusterService   ] [node-01] cluster state update task [put-mapping[wreport, sharing_email]] took [35.1s] above the warn threshold of 30s


java version is 
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-b12)
OpenJDK 64-Bit Server VM (build 25.131-b12, mixed mode)

and elastic version is 5.6.3

I can't upload the elasticsearch version, and I don't know what the problem is, please help !!

This is very old and have been EOL a long time. I would recommend you look into upgrading.

It seems updating and persisting state took longer than 30 seconds, which is not good. I have seen this happen either when very slow storage is used or when the cluster state gets very large from the number of shards managed in the cluster and/or the size of the mappings. It would help if you can provide the full output of the cluster stats API. Note that this has been improved a lot in more recent versions.

1 Like

To echo Christian's points, 5.X is very very old and EOL.

You really need to upgrade as there are huge improvements with Elasticsearch and how it handles updates to cluster state, which Christian pointed out as well.