Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapshot create returns "state":"SUCCESS" when there are failed shards #7471

Closed
bobpoekert opened this issue Aug 26, 2014 · 1 comment
Closed

Comments

@bobpoekert
Copy link

Calling http://elasticsearch:9200/_snapshot/local/test-small on a single index returns the following. Why would a response ever report success when there are failed shards?

{  
   "snapshot":"test-small",
   "repository":"local",
   "state":"SUCCESS",
   "shards_stats":{  
      "initializing":0,
      "started":0,
      "finalizing":0,
      "done":3,
      "failed":2,
      "total":5
   },
   "stats":{  
      "number_of_files":0,
      "processed_files":0,
      "total_size_in_bytes":0,
      "processed_size_in_bytes":0,
      "start_time_in_millis":0,
      "time_in_millis":0
   },
   "indices":{  
      "<index name>":{  
         "shards_stats":{  
            "initializing":0,
            "started":0,
            "finalizing":0,
            "done":3,
            "failed":2,
            "total":5
         },
         "stats":{  
            "number_of_files":0,
            "processed_files":0,
            "total_size_in_bytes":0,
            "processed_size_in_bytes":0,
            "start_time_in_millis":0,
            "time_in_millis":0
         },
         "shards":{  
            "4":{  
               "stage":"DONE",
               "stats":{  
                  "number_of_files":0,
                  "processed_files":0,
                  "total_size_in_bytes":0,
                  "processed_size_in_bytes":0,
                  "start_time_in_millis":0,
                  "time_in_millis":0
               }
            },
            "0":{  
               "stage":"DONE",
               "stats":{  
                  "number_of_files":0,
                  "processed_files":0,
                  "total_size_in_bytes":0,
                  "processed_size_in_bytes":0,
                  "start_time_in_millis":0,
                  "time_in_millis":0
               }
            },
            "1":{  
               "stage":"FAILURE",
               "stats":{  
                  "number_of_files":0,
                  "processed_files":0,
                  "total_size_in_bytes":0,
                  "processed_size_in_bytes":0,
                  "start_time_in_millis":0,
                  "time_in_millis":0
               }
            },
            "2":{  
               "stage":"DONE",
               "stats":{  
                  "number_of_files":0,
                  "processed_files":0,
                  "total_size_in_bytes":0,
                  "processed_size_in_bytes":0,
                  "start_time_in_millis":0,
                  "time_in_millis":0
               }
            },
            "3":{  
               "stage":"FAILURE",
               "stats":{  
                  "number_of_files":0,
                  "processed_files":0,
                  "total_size_in_bytes":0,
                  "processed_size_in_bytes":0,
                  "start_time_in_millis":0,
                  "time_in_millis":0
               }
            }
         }
      }
   }
}
@bobpoekert bobpoekert changed the title Snapshot create returns "stats":"SUCCESS" when there are failed shards Snapshot create returns "state":"SUCCESS" when there are failed shards Aug 26, 2014
@imotov
Copy link
Contributor

imotov commented Aug 27, 2014

Thank you for taking your time to report this issue. If you have created this snapshot using elasticsearch prior to v1.2.0 it's a bug that was fixed by #5792. If you are experiencing this issue with a recent version of elasticsearch, please reopen the issue and attach error messages from log files corresponding to creation of this snapshot.

@imotov imotov closed this as completed Aug 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants