Can't turn back index.translog.durability to request

Hello everyone!

I am using Elasticsearch in version 5.1.1. Recently i've changed my translog durability to async.

I am trying to turn back my index.translog.durability from async to request but i am receiving acknowledge false.

What can i do to go back with syncronous requests?

Yes. request should be good.

What command did you call exactly?

PUT > http://localhost:9200/_settings

{
  "index.translog.durability" : "request"
}

I got this response:

{
  "acknowledged": false
}

You are missing the index name.

I tryed to send to _all but don't worked again.

/_all/_settings

How can i send this request to all indices?

This worked well for me:

curl -XDELETE "http://localhost:9200/test?pretty"
curl -XPUT "http://localhost:9200/test?pretty"
curl -XPUT "http://localhost:9200/test/_settings?pretty" -d '{
  "index.translog.durability" : "async"
}'
curl -XPUT "http://localhost:9200/test/_settings?pretty" -d '{
  "index.translog.durability" : "request"
}'

I don't think you can do that for all indices. But I think it's easy to script that.

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