Browse Source

Fix snapshot_restore_exception in Docs Tests (#46852)

We should only snapshot the index we're going to
restore in the next step. Otherwise, we will
potentially not get the correct response or
fail restoring outright due to internal indices
getting created concurrently when running against
the x-pack distribution.

Closes #46844
Armin Braun 6 years ago
parent
commit
49f11ad207
1 changed files with 1 additions and 0 deletions
  1. 1 0
      docs/reference/indices/recovery.asciidoc

+ 1 - 0
docs/reference/indices/recovery.asciidoc

@@ -32,6 +32,7 @@ PUT /_snapshot/my_repository
 
 
 # snapshot the index
 # snapshot the index
 PUT /_snapshot/my_repository/snap_1?wait_for_completion=true
 PUT /_snapshot/my_repository/snap_1?wait_for_completion=true
+{"indices": "index1"}
 
 
 # delete the index
 # delete the index
 DELETE index1
 DELETE index1