Unable to open index after config change while closed

ES version: 7.10.2 (running in AWS)

I mistakenly added a configuration that had been deprecated and is now preventing me from opening the index. To reproduce, close an index, set the index.mpper.dynamic setting to false, try to open the index. I can't find a way to undo the config change I made and am now stuck - any help would be greatly appreciated!

{
  "error" : {
    "root_cause" : [
      {
        "type" : "exception",
        "reason" : "Failed to verify index [events-000012/e57doKb8Qe2p-D-fOLUcNw]"
      }
    ],
    "type" : "exception",
    "reason" : "Failed to verify index [events-000012/e57doKb8Qe2p-D-fOLUcNw]",
    "caused_by" : {
      "type" : "illegal_argument_exception",
      "reason" : "Setting index.mapper.dynamic was removed after version 6.0.0"
    }
  },
  "status" : 500
}

Hi @matt-monacelli Welcome to the community!
Becareful with index settings :slight_smile:

Did you try setting to null

PUT /my-index-000001/
{
  "settings": {
    "index": {
      "mapper": {
        "dynamic": null
      }
    }
  }
}

or even

PUT /my-index-000001/
{
  "settings": {
    "index": {
      "mapper": null
    }
  }
}

Hi there! Thanks for the quick response! Yes, I had tried both of those - seems to be quite stubborn and got me stuck in a catch-22 :face_with_diagonal_mouth:

@matt-monacelli

Do you have a backup? You may need to delete the index and restore it...

BTW 7.10.2 is ancient, you should really update as a matter of urgency.

@DavidTurner Any ideas?

Try setting index.mapper.* to null.

I tried that as well:

PUT events/_settings
{
  "index.mapper.*": null
}
{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "Setting index.mapper.dynamic was removed after version 6.0.0"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "Setting index.mapper.dynamic was removed after version 6.0.0"
  },
  "status" : 400
}

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