# Getting exception Process ClusterEvent Timeout Exception after 5 minutes

**URL:** <https://discuss.elastic.co/t/getting-exception-process-clusterevent-timeout-exception-after-5-minutes/198244>\
**Category:** Elasticsearch\
**Created:** [September 5, 2019, 12:19pm UTC](https://discuss.elastic.co/t/getting-exception-process-clusterevent-timeout-exception-after-5-minutes/198244 "2019-09-05T12:19:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jayakrishnan\_Nair](https://avatars.discourse-cdn.com/v4/letter/j/a4c791/32.png) [@Jayakrishnan\_Nair](https://discuss.elastic.co/u/Jayakrishnan_Nair)\
**Post date:** [September 5, 2019, 12:19pm UTC](https://discuss.elastic.co/t/getting-exception-process-clusterevent-timeout-exception-after-5-minutes/198244/1 "2019-09-05T12:19:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Preakness](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/preakness/32/35560_2.png) [@Preakness](https://discuss.elastic.co/u/Preakness)\
**Post date:** [September 5, 2019, 2:30pm UTC](https://discuss.elastic.co/t/getting-exception-process-clusterevent-timeout-exception-after-5-minutes/198244/2 "2019-09-05T14:30:12Z")

</div>

> [@Jayakrishnan\_Nair](#):
>
> ProcessClusterEventTimeoutException[failed to process cluster event (put-mapping) within 5m]

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

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

---

<div class="post-metadata">

**Author:** ![Jayakrishnan\_Nair](https://avatars.discourse-cdn.com/v4/letter/j/a4c791/32.png) [@Jayakrishnan\_Nair](https://discuss.elastic.co/u/Jayakrishnan_Nair)\
**Post date:** [September 16, 2019, 7:05am UTC](https://discuss.elastic.co/t/getting-exception-process-clusterevent-timeout-exception-after-5-minutes/198244/3 "2019-09-16T07:05:33Z")

</div>

> [@Preakness](#):
>
> 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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 14, 2019, 7:05am UTC](https://discuss.elastic.co/t/getting-exception-process-clusterevent-timeout-exception-after-5-minutes/198244/4 "2019-10-14T07:05:41Z")

</div>

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