# An error while bulk indexing

**URL:** <https://discuss.elastic.co/t/an-error-while-bulk-indexing/69404>\
**Category:** Elasticsearch\
**Created:** [December 19, 2016, 8:11am UTC](https://discuss.elastic.co/t/an-error-while-bulk-indexing/69404 "2016-12-19T08:11:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ted\_Jung](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@Ted\_Jung](https://discuss.elastic.co/u/Ted_Jung)\
**Post date:** [December 19, 2016, 8:11am UTC](https://discuss.elastic.co/t/an-error-while-bulk-indexing/69404/1 "2016-12-19T08:11:24Z")

</div>

Asking for an advice...what meaning below messgaes have.  
Thanks in advance.

[2016-12-19 05:13:46,783][DEBUG][action.bulk] [doctest02] [filebeat-2016.12.19][1] failed to execute bulk item (index) index {[filebeat-2016.12.19][apache][AVkVfin1zSujsQlPvAXF], source[{"message":"XX.XX.XX.XX - - [19/Dec/2016:03:18:41 +0000] "GET /cc/editor.js HTTP/1.1" 200 366349","@version":"1","@timestamp":"2016-12-19T03:18:41.000Z","input\_type":"log","tenant":"tenant1","service":"service2","source":"/cdata/apache/ssl\_access.log.20161219","type":"apache\_access","count":1,"beat":{"hostname":"cl-was","name":"cl-was"},"offset":1063,"host":"cl-was","tags":["beats\_input\_codec\_plain\_applied"],"clientip":"XX.XX.XX.XX","ident":"-","auth":"-","timestamp":"19/Dec/2016:03:18:41 +0000","verb":"GET","request":"/cc/editor.js","httpversion":"1.1","response":200,"bytes":366349}]}  
java.util.concurrent.TimeoutException: Failed to acknowledge mapping update within [30s]  
at org.elasticsearch.cluster.action.index.MappingUpdatedAction.updateMappingOnMasterSynchronously(MappingUpdatedAction.java:122)  
at org.elasticsearch.cluster.action.index.MappingUpdatedAction.updateMappingOnMasterSynchronously(MappingUpdatedAction.java:112)  
at org.elasticsearch.action.index.TransportIndexAction.executeIndexRequestOnPrimary(TransportIndexAction.java:228)  
at org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:327)  
at org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:120)  
at org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:68)  
at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryPhase.doRun(TransportReplicationAction.java:657)  
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)  
at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryOperationTransportHandler.messageReceived(TransportReplicationAction.java:287)  
at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryOperationTransportHandler.messageReceived(TransportReplicationAction.java:279)  
at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:77)  
at org.elasticsearch.transport.TransportService$4.doRun(TransportService.java:376)  
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)  
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:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [December 19, 2016, 9:09am UTC](https://discuss.elastic.co/t/an-error-while-bulk-indexing/69404/2 "2016-12-19T09:09:37Z")

</div>

It's a timeout waiting for the master to acknowledge a change to the mappings.

This could be a couple of things:

1. Do you have dedicated master nodes as per the recommendations? [1] A node that is double up as a data node can get overloaded and become unresponsive.
2. Does your incoming data introduce many new fields? e.g. if you have a timestamp as a field name (crazy, I know but I've seen it...) then every new doc will introduce a new mapping update if you have dynamic mappings.

Cheers  
Mark

[1] [https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html#master-node](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html#master-node)

---

<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:** [January 16, 2017, 9:10am UTC](https://discuss.elastic.co/t/an-error-while-bulk-indexing/69404/3 "2017-01-16T09:10:31Z")

</div>

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