# Value of index.blocks.write is auto changed to false

**URL:** <https://discuss.elastic.co/t/value-of-index-blocks-write-is-auto-changed-to-false/252207>\
**Category:** Elasticsearch\
**Created:** [October 15, 2020, 1:58pm UTC](https://discuss.elastic.co/t/value-of-index-blocks-write-is-auto-changed-to-false/252207 "2020-10-15T13:58:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamils468](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@kamils468](https://discuss.elastic.co/u/kamils468)\
**Post date:** [October 15, 2020, 1:58pm UTC](https://discuss.elastic.co/t/value-of-index-blocks-write-is-auto-changed-to-false/252207/1 "2020-10-15T13:58:11Z")

</div>

ES ver. 7.4

I want to block all write actions (create/update/delete) to my index. I need it to copy docs to another index using `reindex` action and keep 100% consistency between indicies.

So what I do is:

```auto
curl -X PUT \
  https://elasticsearch/foo-bar/_settings \
  -H 'Content-Type: application/json' \
  -d '{
	"index": {
		"blocks": {
			"write": true
		}
	}
}'

```

Then I verify it:

```auto
curl -X GET 'https://elasticsearch/foo-bar/_settings?include_defaults=true'

```

And the response is correct:

```auto
settings.index.blocks.write = true

```

But after some time about 1 min, this value changes automatically to `false`.

There is nothing in documentation about anything that manages this value: [https://www.elastic.co/guide/en/elasticsearch/reference/master/index-modules-blocks.html](https://www.elastic.co/guide/en/elasticsearch/reference/master/index-modules-blocks.html)

Does anyone know what happens, what change that value?

---

<div class="post-metadata">

**Author:** ![kamils468](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@kamils468](https://discuss.elastic.co/u/kamils468)\
**Post date:** [October 19, 2020, 6:09am UTC](https://discuss.elastic.co/t/value-of-index-blocks-write-is-auto-changed-to-false/252207/2 "2020-10-19T06:09:57Z")

</div>

Ping...  
Anyone ?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 19, 2020, 11:48am UTC](https://discuss.elastic.co/t/value-of-index-blocks-write-is-auto-changed-to-false/252207/3 "2020-10-19T11:48:53Z")

</div>

On top of my head no component should do that.

You can increase some logging to monitor when this is set by running

```auto
PUT /_cluster/settings
{
  "transient": {
    "logger.org.elasticsearch.cluster.service.MasterService": "debug"
  }
}

```

And check the master node logs. Don't forget to set this to `INFO` again...

Do you have any component like curator running?

---

<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 16, 2020, 11:48am UTC](https://discuss.elastic.co/t/value-of-index-blocks-write-is-auto-changed-to-false/252207/4 "2020-11-16T11:48:53Z")

</div>

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