# Elasticsearch not updating any data with no error

**URL:** <https://discuss.elastic.co/t/elasticsearch-not-updating-any-data-with-no-error/287177>\
**Category:** Elasticsearch\
**Created:** [October 20, 2021, 9:53am UTC](https://discuss.elastic.co/t/elasticsearch-not-updating-any-data-with-no-error/287177 "2021-10-20T09:53:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![APic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/apic/32/78687_2.png) [@APic](https://discuss.elastic.co/u/APic)\
**Post date:** [October 20, 2021, 9:53am UTC](https://discuss.elastic.co/t/elasticsearch-not-updating-any-data-with-no-error/287177/1 "2021-10-20T09:53:17Z")

</div>

Hello, in Elasticsearch 6.6.2 i'm having this weird problem  
where elastic stops performing any modification to data. Any UPDATE/INDEX/DELETE operation  
returns OK result but data never change in indexes. I see no errors in logs.  
If i restart ES it resumes working correctly, than after a couple of days it's locked again.  
All indexes are open and green.

Any hint?  
Thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 20, 2021, 11:55am UTC](https://discuss.elastic.co/t/elasticsearch-not-updating-any-data-with-no-error/287177/2 "2021-10-20T11:55:42Z")

</div>

What exact commands are you sending to check this?  
Could you share the outputs as well?

---

<div class="post-metadata">

**Author:** ![APic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/apic/32/78687_2.png) [@APic](https://discuss.elastic.co/u/APic)\
**Post date:** [October 20, 2021, 12:16pm UTC](https://discuss.elastic.co/t/elasticsearch-not-updating-any-data-with-no-error/287177/3 "2021-10-20T12:16:56Z")

</div>

Hello @dadoonet, thanks for your reply. The issue is observed in a production application where there are many processes writing to elastic on different indexes continuously from 5s to 1m frequency. We have many tens of instances of application and this issue is observed for first time only on this instance. All processes receive "updated" or "created" results but indexes does not contain written documents when we perform searches. I also see in \_cat/indices that documents count is not growing.  
For reference, i manually tried deleting a document with:  
`DELETE localhost:9200/test.index/metrics/test`  
result:

```auto
{
    "_index": "test.index",
    "_type": "metrics",
    "_id": "test",
    "_version": 2,
    "result": "deleted",
    "_shards": {
        "total": 1,
        "successful": 1,
        "failed": 0
    },
    "_seq_no": 8480123,
    "_primary_term": 56
}

```

than (even after minutes):  
`GET localhost:9200/test.index/_search`  
still shows me document.  
Weird enough, if i try to delete document again i receive 404.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 20, 2021, 1:57pm UTC](https://discuss.elastic.co/t/elasticsearch-not-updating-any-data-with-no-error/287177/4 "2021-10-20T13:57:26Z")

</div>

I'd recommend upgrading to 6.8 as it might fix the problem. I honestly don't know what is happening.  
Unless you have disabled the refresh or change its default value for the index.

---

<div class="post-metadata">

**Author:** ![APic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/apic/32/78687_2.png) [@APic](https://discuss.elastic.co/u/APic)\
**Post date:** [October 20, 2021, 2:53pm UTC](https://discuss.elastic.co/t/elasticsearch-not-updating-any-data-with-no-error/287177/5 "2021-10-20T14:53:13Z")

</div>

Can i somewhat check current refresh configuration?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 20, 2021, 3:06pm UTC](https://discuss.elastic.co/t/elasticsearch-not-updating-any-data-with-no-error/287177/6 "2021-10-20T15:06:21Z")

</div>

Look at the index settings

---

<div class="post-metadata">

**Author:** ![APic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/apic/32/78687_2.png) [@APic](https://discuss.elastic.co/u/APic)\
**Post date:** [October 20, 2021, 3:10pm UTC](https://discuss.elastic.co/t/elasticsearch-not-updating-any-data-with-no-error/287177/7 "2021-10-20T15:10:03Z")

</div>

This is what i get. Should i expect to see some additional field if refresh is changed? Currently DB is restarted and operative, i should wait to get it hanged.

```auto
"settings": {
            "index": {
                "creation_date": "1628763148510",
                "number_of_shards": "5",
                "number_of_replicas": "1",
                "uuid": "2yfLQd4MSSuSpEt1UNaxSg",
                "version": {
                    "created": "6060299"
                },
                "provided_name": "xxx"
            }
        }

```

---

<div class="post-metadata">

**Author:** ![APic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/apic/32/78687_2.png) [@APic](https://discuss.elastic.co/u/APic)\
**Post date:** [October 26, 2021, 11:59am UTC](https://discuss.elastic.co/t/elasticsearch-not-updating-any-data-with-no-error/287177/8 "2021-10-26T11:59:58Z")

</div>

Hello, sorry for reopening discussion, I've observed behavior after restart and all documents written during the malfunctioning period were correctly written, in fact, i can see them after restart. It seems that hanging happens only at search level. All searches does not return latest documents (either new or updated) yet they return a freezed version of indexes.  
May this help identifying the issue?  
Thanks

---

<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:** [November 23, 2021, 12:00pm UTC](https://discuss.elastic.co/t/elasticsearch-not-updating-any-data-with-no-error/287177/9 "2021-11-23T12:00:44Z")

</div>

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