# Minor consistency issues with a 3 node cluster on 0.12

**URL:** <https://discuss.elastic.co/t/minor-consistency-issues-with-a-3-node-cluster-on-0-12/3475>\
**Category:** Elasticsearch\
**Created:** [October 25, 2010, 10:04pm UTC](https://discuss.elastic.co/t/minor-consistency-issues-with-a-3-node-cluster-on-0-12/3475 "2010-10-25T22:04:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppearcy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppearcy/32/980_2.png) [@ppearcy](https://discuss.elastic.co/u/ppearcy)\
**Post date:** [October 25, 2010, 10:04pm UTC](https://discuss.elastic.co/t/minor-consistency-issues-with-a-3-node-cluster-on-0-12/3475/1 "2010-10-25T22:04:54Z")

</div>

Running 0.12 on a 3 node cluster. Built up ~25 million documents.  
Afterwards, everything was good and the match all query returned the  
same number of results every time.

I did a cluster shutdown command and then started up every node. One  
node got a head start, as a couple were timing out of discovery after  
30 seconds. After a couple minutes I got the other two nodes started.

I am now in a green state and when i execute a _:_ query the results  
change +/- 7 results.

At no time did this cluster go split brain and the data was consistent  
before cluster shutdown.

Here is my hunch:

- First node started got a head start
- Recovered a shard or shards from the gateway because it wasn't local
- Other two nodes started up and began local recovery and the local  
shard must (may?) have been out of sync with the one on the gateway.

Any idea what could have happened and how to prevent this?

Thanks,  
Paul

---

<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:** [October 26, 2010, 7:30pm UTC](https://discuss.elastic.co/t/minor-consistency-issues-with-a-3-node-cluster-on-0-12/3475/2 "2010-10-26T19:30:49Z")

</div>

When using shared gateway: only the first shard in a replication group  
recovers its state from the gateway (and not recovering what it already has  
in its work dir). Then, the other shard replicas recover their state from  
the already running shard (reusing what they can of the local storage). Its  
strange what you got, can I have more details regarding:

1. Do you still have the logs? Can you mail them to me?
2. Was there indexing process running while this happened?
3. Was the work dir cleared?
4. (should be the first question): You are using shared NFS gateway, right?

-shay.banon

On Tue, Oct 26, 2010 at 12:04 AM, Paul [ppearcy@gmail.com](mailto:ppearcy@gmail.com) wrote:

> Running 0.12 on a 3 node cluster. Built up ~25 million documents.  
> Afterwards, everything was good and the match all query returned the  
> same number of results every time.
> 
> I did a cluster shutdown command and then started up every node. One  
> node got a head start, as a couple were timing out of discovery after  
> 30 seconds. After a couple minutes I got the other two nodes started.
> 
> I am now in a green state and when i execute a _:_ query the results  
> change +/- 7 results.
> 
> At no time did this cluster go split brain and the data was consistent  
> before cluster shutdown.
> 
> Here is my hunch:
> 
> - First node started got a head start
> - Recovered a shard or shards from the gateway because it wasn't local
> - Other two nodes started up and began local recovery and the local  
> shard must (may?) have been out of sync with the one on the gateway.
> 
> Any idea what could have happened and how to prevent this?
> 
> Thanks,  
> Paul

---

<div class="post-metadata">

**Author:** ![ppearcy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppearcy/32/980_2.png) [@ppearcy](https://discuss.elastic.co/u/ppearcy)\
**Post date:** [October 26, 2010, 9:40pm UTC](https://discuss.elastic.co/t/minor-consistency-issues-with-a-3-node-cluster-on-0-12/3475/3 "2010-10-26T21:40:16Z")

</div>

Hey Shay,  
To answer your questions:

1. I think so. I'll ping you with details.
2. All indexing was completely disabled. We have an indexing app using  
the java APIs and it is the only way we index data into ES.
3. The work directory was not touched.
4. We are using a shared NFS setup and have a dedicated file server in  
place to host the share. The config for this should be good. On the  
client side, the mount command gives me:  
10.16.104.11:/opt/wsod/esgateway on /esgateway type nfs  
(rw,hard,intr,addr=10.16.104.11)

On the server side my exports file looks like:  
/opt/wsod/esgateway 10.16.0.0/255.255.0.0(rw,sync,no\_root\_squash)

You should see details on the log files shortly.

Thanks,  
Paul

On Oct 26, 1:30 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> When using shared gateway: only the first shard in a replication group  
> recovers its state from the gateway (and not recovering what it already has  
> in its work dir). Then, the other shard replicas recover their state from  
> the already running shard (reusing what they can of the local storage). Its  
> strange what you got, can I have more details regarding:
> 
> 1. Do you still have the logs? Can you mail them to me?
> 2. Was there indexing process running while this happened?
> 3. Was the work dir cleared?
> 4. (should be the first question): You are using shared NFS gateway, right?
> 
> -shay.banon
> 
> On Tue, Oct 26, 2010 at 12:04 AM, Paul [ppea...@gmail.com](mailto:ppea...@gmail.com) wrote:
> 
> > Running 0.12 on a 3 node cluster. Built up ~25 million documents.  
> > Afterwards, everything was good and the match all query returned the  
> > same number of results every time.
> 
> > I did a cluster shutdown command and then started up every node. One  
> > node got a head start, as a couple were timing out of discovery after  
> > 30 seconds. After a couple minutes I got the other two nodes started.
> 
> > I am now in a green state and when i execute a _:_ query the results  
> > change +/- 7 results.
> 
> > At no time did this cluster go split brain and the data was consistent  
> > before cluster shutdown.
> 
> > Here is my hunch:
> > 
> > - First node started got a head start
> > - Recovered a shard or shards from the gateway because it wasn't local
> > - Other two nodes started up and began local recovery and the local  
> > shard must (may?) have been out of sync with the one on the gateway.
> 
> > Any idea what could have happened and how to prevent this?
> 
> > Thanks,  
> > Paul

---

<div class="post-metadata">

**Author:** ![ppearcy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppearcy/32/980_2.png) [@ppearcy](https://discuss.elastic.co/u/ppearcy)\
**Post date:** [October 28, 2010, 8:28pm UTC](https://discuss.elastic.co/t/minor-consistency-issues-with-a-3-node-cluster-on-0-12/3475/4 "2010-10-28T20:28:56Z")

</div>

Hey,  
Sorry for the delay. There is nothing in the logs when this was  
occurring. Everything shows a happy startup. I have enabled all  
recovery logging, so hopefully will have data next time this occurs.

Thanks,  
Paul

On Oct 26, 3:40 pm, Paul [ppea...@gmail.com](mailto:ppea...@gmail.com) wrote:

> Hey Shay,  
> To answer your questions:
> 
> 1. I think so. I'll ping you with details.
> 2. All indexing was completely disabled. We have an indexing app using  
> the java APIs and it is the only way we index data into ES.
> 3. The work directory was not touched.
> 4. We are using a shared NFS setup and have a dedicated file server in  
> place to host the share. The config for this should be good. On the  
> client side, the mount command gives me:  
> 10.16.104.11:/opt/wsod/esgateway on /esgateway type nfs  
> (rw,hard,intr,addr=10.16.104.11)
> 
> On the server side my exports file looks like:  
> /opt/wsod/esgateway 10.16.0.0/255.255.0.0(rw,sync,no\_root\_squash)
> 
> You should see details on the log files shortly.
> 
> Thanks,  
> Paul
> 
> On Oct 26, 1:30 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > When using shared gateway: only the first shard in a replication group  
> > recovers its state from the gateway (and not recovering what it already has  
> > in its work dir). Then, the other shard replicas recover their state from  
> > the already running shard (reusing what they can of the local storage). Its  
> > strange what you got, can I have more details regarding:
> 
> > 1. Do you still have the logs? Can you mail them to me?
> > 2. Was there indexing process running while this happened?
> > 3. Was the work dir cleared?
> > 4. (should be the first question): You are using shared NFS gateway, right?
> 
> > -shay.banon
> 
> > On Tue, Oct 26, 2010 at 12:04 AM, Paul [ppea...@gmail.com](mailto:ppea...@gmail.com) wrote:
> > 
> > > Running 0.12 on a 3 node cluster. Built up ~25 million documents.  
> > > Afterwards, everything was good and the match all query returned the  
> > > same number of results every time.
> 
> > > I did a cluster shutdown command and then started up every node. One  
> > > node got a head start, as a couple were timing out of discovery after  
> > > 30 seconds. After a couple minutes I got the other two nodes started.
> 
> > > I am now in a green state and when i execute a _:_ query the results  
> > > change +/- 7 results.
> 
> > > At no time did this cluster go split brain and the data was consistent  
> > > before cluster shutdown.
> 
> > > Here is my hunch:
> > > 
> > > - First node started got a head start
> > > - Recovered a shard or shards from the gateway because it wasn't local
> > > - Other two nodes started up and began local recovery and the local  
> > > shard must (may?) have been out of sync with the one on the gateway.
> 
> > > Any idea what could have happened and how to prevent this?
> 
> > > Thanks,  
> > > Paul

---

<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, 4:17am UTC](https://discuss.elastic.co/t/minor-consistency-issues-with-a-3-node-cluster-on-0-12/3475/5 "2017-07-06T04:17:27Z")

</div>

Closed on July 6, 2017, 4:17am UTC


