From f432b63319ae5bce70017d49a58928f355698e9d Mon Sep 17 00:00:00 2001 From: Joe Gallo Date: Mon, 21 Feb 2022 10:50:27 -0500 Subject: [PATCH 1/2] Correct this prerequisite It's not actually the case that all the primaries need to be on the same node, replicas are sufficient. --- docs/reference/indices/shrink-index.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/indices/shrink-index.asciidoc b/docs/reference/indices/shrink-index.asciidoc index 6b5cbe0fdc0a4..b4c9483b565b2 100644 --- a/docs/reference/indices/shrink-index.asciidoc +++ b/docs/reference/indices/shrink-index.asciidoc @@ -31,7 +31,7 @@ POST /my-index-000001/_shrink/shrunk-my-index-000001 * Before you can shrink an index: ** The index must be read-only. -** All primary shards for the index must reside on the same node. +** All shards for the index must have a copy (either primary or replica) on the same node. ** The index must have a `green` <>. To make shard allocation easier, we recommend you also remove the index's From 5de746ff682b17ad122fc7ac20f4b7870a2b80d2 Mon Sep 17 00:00:00 2001 From: Joe Gallo Date: Mon, 21 Feb 2022 11:00:44 -0500 Subject: [PATCH 2/2] Go back to the previous wording from before the mistaken wording was added. --- docs/reference/indices/shrink-index.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/indices/shrink-index.asciidoc b/docs/reference/indices/shrink-index.asciidoc index b4c9483b565b2..01333862c45d4 100644 --- a/docs/reference/indices/shrink-index.asciidoc +++ b/docs/reference/indices/shrink-index.asciidoc @@ -31,7 +31,7 @@ POST /my-index-000001/_shrink/shrunk-my-index-000001 * Before you can shrink an index: ** The index must be read-only. -** All shards for the index must have a copy (either primary or replica) on the same node. +** A copy of every shard in the index must reside on the same node. ** The index must have a `green` <>. To make shard allocation easier, we recommend you also remove the index's