# 5 of 30 shards failed in Elastic 5.5.1

**URL:** <https://discuss.elastic.co/t/5-of-30-shards-failed-in-elastic-5-5-1/162373>\
**Category:** Elasticsearch\
**Created:** [December 28, 2018, 5:20pm UTC](https://discuss.elastic.co/t/5-of-30-shards-failed-in-elastic-5-5-1/162373 "2018-12-28T17:20:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![carrolp](https://avatars.discourse-cdn.com/v4/letter/c/7ab992/32.png) [@carrolp](https://discuss.elastic.co/u/carrolp)\
**Post date:** [December 28, 2018, 8:01pm UTC](https://discuss.elastic.co/t/5-of-30-shards-failed-in-elastic-5-5-1/162373/3 "2018-12-28T20:01:33Z")

</div>

Thanks for the response Igor\_Motov. The problem isn't so much that the field could be mapped as float or text depending on which log message comes in first. That's what we're seeing in the system that says "Field Type Conflict" -- that is acceptable, and is not a problem. The problem is the other system where we actually get a "shards failed" error preventing us from querying any of the logs. Are you saying that "shards failed" is **also** normal/expected for elasticsearch when dynamic mapping is used and the data is not perfectly consistent?  
Our scenario does call for using dynamic mapping. It might also be worth pointing out we are using the logstash json filter plugin to dynamically parse the fields.

I interpreted the above linked discussions (also [this one](https://discuss.elastic.co/t/sum-aggregation-returning-very-small-unrelated-values/26890/4)) to mean that this inconsistent mapping, where one shard maps with one type and another shard maps with a different type, within the same index, should not happen since v2.x. E.g.:

> On 2.0, this issue will be fixed as dynamic mappings will have to be validated on the master node first before being applied

and

> Primary one thinks it's a String.  
> Primary two thinks it's a Date.  
> And you have kind of inconsistent mapping here.  
> That happened in the past. This is no longer true with recent versions.

It seems to be describing what we're seeing with v5.5.1 however, and it's not clear why (or how we can fix it so it consistently behaves like the 'good' system with the 'Field Type Conflict')

---

_[View the full topic](https://discuss.elastic.co/t/5-of-30-shards-failed-in-elastic-5-5-1/162373)._
