# Partial failure

**URL:** <https://discuss.elastic.co/t/partial-failure/112153>\
**Category:** Elasticsearch\
**Created:** [December 18, 2017, 6:06am UTC](https://discuss.elastic.co/t/partial-failure/112153 "2017-12-18T06:06:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Davidovich](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@Alex\_Davidovich](https://discuss.elastic.co/u/Alex_Davidovich)\
**Post date:** [December 18, 2017, 6:06am UTC](https://discuss.elastic.co/t/partial-failure/112153/1 "2017-12-18T06:06:21Z")

</div>

I have a 3 nodes cluster with 1 primary and 2 replica shards.  
I inserted a document and got this response:

```
IndexResponse[index=events_1513522587069,type=events,id=112,version=1,result=created,shards=
{"total":3,"successful":1,"failed":1,"failures":
[{"_index":"events_1513522587069","_shard":0,"_node":"87JEfX7tTYC9jIN3c-8hhQ","reason":
{"type":"node_disconnected_exception","reason":"[node-2][172.16.65.117:9300]
[indices:data/write/bulk[s][r]] disconnected"},"status":"INTERNAL_SERVER_ERROR","primary":false}]}]

```

I understand that only 1 shard was able to persist the document (the successful one...), 1 failed.  
What about the third?  
In addition, why 1 shard is written when didn't get ack from the rest of the nodes? I don't want to have this behavior.

---

<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:** [December 18, 2017, 7:21am UTC](https://discuss.elastic.co/t/partial-failure/112153/2 "2017-12-18T07:21:59Z")

</div>

What version are you on? How many shards and replicas in the index?

---

<div class="post-metadata">

**Author:** ![Alex\_Davidovich](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@Alex\_Davidovich](https://discuss.elastic.co/u/Alex_Davidovich)\
**Post date:** [December 18, 2017, 7:35am UTC](https://discuss.elastic.co/t/partial-failure/112153/3 "2017-12-18T07:35:05Z")

</div>

Version 5.4.  
1 index with 1 primary shard and 2 replicas.  
3 nodes in the cluster.

---

<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 15, 2018, 7:35am UTC](https://discuss.elastic.co/t/partial-failure/112153/4 "2018-01-15T07:35:19Z")

</div>

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