# Single-node restart results in inconsistency between primary and replica shard data

**URL:** <https://discuss.elastic.co/t/single-node-restart-results-in-inconsistency-between-primary-and-replica-shard-data/182337>\
**Category:** Elasticsearch\
**Created:** [May 23, 2019, 2:23am UTC](https://discuss.elastic.co/t/single-node-restart-results-in-inconsistency-between-primary-and-replica-shard-data/182337 "2019-05-23T02:23:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hanbj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hanbj/32/24677_2.png) [@hanbj](https://discuss.elastic.co/u/hanbj)\
**Post date:** [May 23, 2019, 2:23am UTC](https://discuss.elastic.co/t/single-node-restart-results-in-inconsistency-between-primary-and-replica-shard-data/182337/1 "2019-05-23T02:23:34Z")

</div>

Search primary shard：

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/4/c4b08410eb0b4a0bd2574ae2c92f65b3c886d8e4.png)

Search replica shard：

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/7/d773e6981d226fd7a66c0023eaf44d708afc0e56.png)

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [May 23, 2019, 5:41am UTC](https://discuss.elastic.co/t/single-node-restart-results-in-inconsistency-between-primary-and-replica-shard-data/182337/2 "2019-05-23T05:41:06Z")

</div>

Please don't post images of text. They're had to read and search.

Repeating the `?preference` parameter doesn't work as you expect. Elasticsearch ignores one or other repeat, so your searches are doing different things.

---

<div class="post-metadata">

**Author:** ![hanbj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hanbj/32/24677_2.png) [@hanbj](https://discuss.elastic.co/u/hanbj)\
**Post date:** [May 23, 2019, 6:14am UTC](https://discuss.elastic.co/t/single-node-restart-results-in-inconsistency-between-primary-and-replica-shard-data/182337/3 "2019-05-23T06:14:08Z")

</div>

ES version: 5.4.2

I just restarted a node. After the cluster state is green.

Sometimes the statement can look up the data, sometimes it can't. I use preference parameter to find that the data is on the primary shard, but the replica shard is not.

---

<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:** [June 20, 2019, 6:14am UTC](https://discuss.elastic.co/t/single-node-restart-results-in-inconsistency-between-primary-and-replica-shard-data/182337/4 "2019-06-20T06:14:09Z")

</div>

Closed on June 20, 2019, 6:14am UTC

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