Getting exception Process ClusterEvent Timeout Exception after 5 minutes

Hi All,
I have cluster with 16 data node and 3 master nodes. With total of 22500 shard distributed across 16 nodes.
The put-mapping event fails even after 5 minutes after configuring the timeout value.
We are using elasticsearch 5.3.x version
Below is the stackstrace for the same.

ProcessClusterEventTimeoutException[failed to process cluster event (put-mapping) within 5m]
at org.elasticsearch.cluster.service.ClusterService.lambda$onTimeout$4(ClusterService.java:497)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:544)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Thanks
Jay

Is the cluster health green before you do the put mapping?

Can you share your api call, and what you are trying to achive?

PutMappingRequestBuilder putMappingRequestBuilder = elasticClient.admin().indices().preparePutMapping(indexName);
putMappingRequestBuilder.setType(componentNameId)
.setMasterNodeTimeout(INDEX_MAPPING_TIMEOUT)
.setTimeout(INDEX_MAPPING_TIMEOUT)
.setSource(getContentFromFile(MAPPING_ROOT + componentNameId + ".json"), XContentType.JSON);

The health of the cluster is green while generating the mappings. We are generating mapping using putMappingRequestBuilder API of elasticsearch java api v5.3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.