Skip to content

Return snapshots in progress when ignore_unavailable is set to true in Get Snapshots API #68090

@gaobinlong

Description

@gaobinlong
Contributor

Elasticsearch version (bin/elasticsearch --version): master,7.5.1,6.8.2

Plugins installed: []

JVM version (java -version): 14

OS version (uname -a if on a Unix-like system): macos 10.13.6

Description of the problem including expected versus actual behavior:

When executing Get Snapshots API, if the target snapshot does not exist, and ignore_unavailable is set to true, then the API returns all the snapshots which are in progress.

Steps to reproduce:

  1. Create a snapshot which will take a long time to execute.
PUT _snapshot/my_repository/snap1
{
 "indices":["y"]
}
  1. Get an unknown snapshot, and set ignore_unavailable to true
GET _snapshot/my_repository/xxx?ignore_unavailable=true

then you can see the snap1 existed in the response.

Activity

elasticmachine

elasticmachine commented on Jan 28, 2021

@elasticmachine
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

added a commit that references this issue on Jan 29, 2021
7793a95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @original-brownbear@gaobinlong@elasticmachine

      Issue actions

        Return snapshots in progress when ignore_unavailable is set to true in Get Snapshots API · Issue #68090 · elastic/elasticsearch