浏览代码

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 年之前
父节点
当前提交
49f11ad207
共有 1 个文件被更改,包括 1 次插入0 次删除
  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
 PUT /_snapshot/my_repository/snap_1?wait_for_completion=true
+{"indices": "index1"}
 
 # delete the index
 DELETE index1