# Facing error in a single shard when replica=0

**URL:** <https://discuss.elastic.co/t/facing-error-in-a-single-shard-when-replica-0/6958>\
**Category:** Elasticsearch\
**Created:** [March 9, 2012, 9:24am UTC](https://discuss.elastic.co/t/facing-error-in-a-single-shard-when-replica-0/6958 "2012-03-09T09:24:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [March 9, 2012, 9:24am UTC](https://discuss.elastic.co/t/facing-error-in-a-single-shard-when-replica-0/6958/1 "2012-03-09T09:24:29Z")

</div>

Hi ,

I am seeing this error when replica is set to 0.  
With replica =1 its working fine.

Mapping command - [https://gist.github.com/2005810](https://gist.github.com/2005810)  
Query command - [https://gist.github.com/2005820](https://gist.github.com/2005820)  
Error message - [https://gist.github.com/2005802](https://gist.github.com/2005802)  
Version - 0.19

Strange things when the error strike is that , only 1 shard produces the  
error and result is harnessed from others.

Thanks  
Vineeth

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 9, 2012, 7:05pm UTC](https://discuss.elastic.co/t/facing-error-in-a-single-shard-when-replica-0/6958/2 "2012-03-09T19:05:33Z")

</div>

You end up putting both mappings under attachment (in the URL)?

On Friday, March 9, 2012 at 11:24 AM, Vineeth Mohan wrote:

> Hi ,
> 
> I am seeing this error when replica is set to 0.  
> With replica =1 its working fine.
> 
> Mapping command - [gist:2005810 · GitHub](https://gist.github.com/2005810)  
> Query command - [gist:2005820 · GitHub](https://gist.github.com/2005820)  
> Error message - [gist:2005802 · GitHub](https://gist.github.com/2005802)  
> Version - 0.19
> 
> Strange things when the error strike is that , only 1 shard produces the error and result is harnessed from others.
> 
> Thanks  
> Vineeth

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [March 10, 2012, 8:55am UTC](https://discuss.elastic.co/t/facing-error-in-a-single-shard-when-replica-0/6958/3 "2012-03-10T08:55:06Z")

</div>

oops my bad !!!

But then , i didn't get why only 1 shard exhibited the strange behavior.

Thanks  
Vineeth

On Sat, Mar 10, 2012 at 12:35 AM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> You end up putting both mappings under attachment (in the URL)?
> 
> On Friday, March 9, 2012 at 11:24 AM, Vineeth Mohan wrote:
> 
> Hi ,
> 
> I am seeing this error when replica is set to 0.  
> With replica =1 its working fine.
> 
> Mapping command - [gist:2005810 · GitHub](https://gist.github.com/2005810)  
> Query command - [gist:2005820 · GitHub](https://gist.github.com/2005820)  
> Error message - [gist:2005802 · GitHub](https://gist.github.com/2005802)  
> Version - 0.19
> 
> Strange things when the error strike is that , only 1 shard produces the  
> error and result is harnessed from others.
> 
> Thanks  
> Vineeth

---

<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:** [July 6, 2017, 3:36am UTC](https://discuss.elastic.co/t/facing-error-in-a-single-shard-when-replica-0/6958/4 "2017-07-06T03:36:26Z")

</div>

Closed on July 6, 2017, 3:36am UTC


