Skip to content

Clone API is not working as expected in ES 7.1 #58568

Closed
@alexis-anzieu-ssense

Description

@alexis-anzieu-ssense

Running on Elasticsearch 7.1
Regarding the documentation I should be able to clone an existing index with settings: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-clone-index.html

However when I do this call:

PUT index1/_clone/index2
  "settings": {
    "index.number_of_shards": 3,
    "index.number_of_replicas": 0,
    "index.auto_expand_replicas": false,
    "index.routing.allocation.require._name": null,
    "index.blocks.read_only": false
  }
}

It sends me back

{
  "error": {
    "root_cause": [
      {
        "type": "invalid_type_name_exception",
        "reason": "Document mapping type name can't start with '_', found: [_clone]"
      }
    ],
    "type": "invalid_type_name_exception",
    "reason": "Document mapping type name can't start with '_', found: [_clone]"
  },
  "status": 400
}

It seems like a new feature on ES 7 so I should maybe use reindex API instead, or it may be fixed in the newest version, just to let you know. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    >bugneeds:triageRequires assignment of a team area label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions