# Auto Creation of Map/Type Failure

**URL:** <https://discuss.elastic.co/t/auto-creation-of-map-type-failure/71589>\
**Category:** Elasticsearch\
**Created:** [January 14, 2017, 12:37am UTC](https://discuss.elastic.co/t/auto-creation-of-map-type-failure/71589 "2017-01-14T00:37:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fahd\_shaikh](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@fahd\_shaikh](https://discuss.elastic.co/u/fahd_shaikh)\
**Post date:** [January 14, 2017, 12:37am UTC](https://discuss.elastic.co/t/auto-creation-of-map-type-failure/71589/1 "2017-01-14T00:37:52Z")

</div>

Hi,

I am working on creating a data sync between sql server & elasticsearch. In elasticsearch I have created an index  
with a mapping '_default_' (note this default mapping has 900+ fields). The type of the document is mapping to a field in sql server & every time I sync a record that is of a new type, elasticsearch goes ahead and auto creates the type for me (based on the _default_ type that is created). The issue I am running into is sometimes this auto creation of the type takes several minutes to create and can fail with the error message below. Anyone has any ideas how to resolve this? I am using Elasticsearch 5.0.

ProcessClusterEventTimeoutException[failed to process cluster event (put-mapping) within 30s]  
at org.elasticsearch.cluster.service.ClusterService.lambda$null$4(ClusterService.java:430)  
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:444)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
at java.lang.Thread.run(Thread.java:745)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 15, 2017, 11:56pm UTC](https://discuss.elastic.co/t/auto-creation-of-map-type-failure/71589/2 "2017-01-15T23:56:29Z")

</div>

That's a pretty large mapping, and probably part of the problem.

---

<div class="post-metadata">

**Author:** ![fahd\_shaikh](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@fahd\_shaikh](https://discuss.elastic.co/u/fahd_shaikh)\
**Post date:** [January 17, 2017, 6:44pm UTC](https://discuss.elastic.co/t/auto-creation-of-map-type-failure/71589/3 "2017-01-17T18:44:58Z")

</div>

I believe so too, however, apart from reducing the size of the mapping, any ideas?

---

<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:** [February 14, 2017, 6:45pm UTC](https://discuss.elastic.co/t/auto-creation-of-map-type-failure/71589/4 "2017-02-14T18:45:11Z")

</div>

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