Skip to content

Issue on deleting ES Snapshot with Azure plugin #25424

@etiennecarriere

Description

@etiennecarriere

Hi,

I have issues to delete snapshot on a repository managed with Azure plugin :

  • Our configuration is the following :
    = ElasticSearch version : 5.4.1 (via https://artifacts.elastic.co/packages/5.x/yum)
    = Plugins installed : x-pack, repository-azure
    = JVM version : Openjdk 1.8.0.121 (RPM : java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64)
    = OS Version : Centos 7.3 / Linux xxx 3.10.0-514.10.2.el7.x86_64 Query DSL: Terms Filter #1 SMP Fri Mar 3 00:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
    = Point to note : We use the Azure plugin but we are not in the Azure infrastructure

Description of the problem including expected versus actual behavior:

Expected behaviour :

  • Possibility to delete more than one snapshot from Azure repository
    Actual Behaviour:
  • The DELETE Request never ends up
  • When you ask the status of the Snapshot, you take a 404 snapshot_missing_exception
  • When you try to delete an other snapshot, you get a 503 concurrent_snapshot_execution_exception

Steps to reproduce:

I always achieve to reproduce it on my test environnement (happens first on production) :

  1. curl -v -X DELETE http://X.Y.Z.T:9200/_snapshot/testbackups-azure/snapshot_XXX . The request hangs up
  2. In the same time, on the second terminal , curl -v http://X.Y.Z.T:9200/_snapshot/testbackups-azure/snapshot_XXX. You get
    {"error":{"root_cause":[{"type":"snapshot_missing_exception","reason":"[testbackups-azure:snapshot_XXX] is missing"}],"type":"snapshot_missing_exception","reason":"[testbackups-azure:snapshot_XXX] is missing"},"status":404}
  3. On the second terminal, ask for curl -v -X DELETE http://X.Y.Z.T:9200/_snapshot/testbackups-azure/snapshot_YYY (a different Snapshot this time).
    {"error":{"root_cause":[{"type":"concurrent_snapshot_execution_exception","reason":"[testbackups-azure:snapshot_YYY/ZZZ] cannot delete - another snapshot is currently being deleted"}],"type":"concurrent_snapshot_execution_exception","reason":"[testbackups-azure:snapshot_YYY/ZZZ] cannot delete - another snapshot is currently being deleted"},"status":503}

When I do a rolling restart of the cluster ES, it come back to normal and the first snapshot (XXX in our case) is no more present and it is possible to delete an snapshot.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions