-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[DOCS] fix typo with the Allocation Explain API #37974
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -105,12 +105,12 @@ GET /_cluster/allocation/explain | |
|
|
||
| [source,console] | ||
| -------------------------------------------------- | ||
| PUT /idx?master_timeout=1s&timeout=1s | ||
| PUT /myindex?master_timeout=1s&timeout=1s | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now I remember why I did not use
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So in fact, the right PR I should do is rename everything from myindex to idx ? 😀
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think for this you can update the settings on the |
||
| {"settings": {"index.routing.allocation.include._name": "non_existent_node"} } | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Github won't let me comment above this line, but two lines above this there is: That would need to be changed to use |
||
| GET /_cluster/allocation/explain | ||
| { | ||
| "index": "idx", | ||
| "index": "myindex", | ||
| "shard": 0, | ||
| "primary": true | ||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Forgot to add: You'll also need to include a |
||
|
|
@@ -122,7 +122,7 @@ The API returns the following response for an unassigned primary shard: | |
| [source,console-result] | ||
| -------------------------------------------------- | ||
| { | ||
| "index" : "idx", | ||
| "index" : "myindex", | ||
| "shard" : 0, | ||
| "primary" : true, | ||
| "current_state" : "unassigned", <1> | ||
|
|
@@ -171,7 +171,7 @@ allocated to a node in the cluster: | |
| [source,js] | ||
| -------------------------------------------------- | ||
| { | ||
| "index" : "idx", | ||
| "index" : "myindex", | ||
| "shard" : 0, | ||
| "primary" : true, | ||
| "current_state" : "unassigned", | ||
|
|
@@ -196,7 +196,7 @@ allocation: | |
| [source,js] | ||
| -------------------------------------------------- | ||
| { | ||
| "index" : "idx", | ||
| "index" : "myindex", | ||
| "shard" : 0, | ||
| "primary" : false, | ||
| "current_state" : "unassigned", | ||
|
|
@@ -232,7 +232,7 @@ allocation: | |
| { | ||
| "decider" : "same_shard", | ||
| "decision" : "NO", | ||
| "explanation" : "the shard cannot be allocated to the same node on which a copy of the shard already exists [[idx][0], node[3sULLVJrRneSg0EfBB-2Ew], [P], s[STARTED], a[id=eV9P8BN1QPqRc3B4PLx6cg]]" | ||
| "explanation" : "the shard cannot be allocated to the same node on which a copy of the shard already exists [[myindex][0], node[3sULLVJrRneSg0EfBB-2Ew], [P], s[STARTED], a[id=eV9P8BN1QPqRc3B4PLx6cg]]" | ||
| } | ||
| ] | ||
| } | ||
|
|
@@ -253,7 +253,7 @@ its current node and is required to move: | |
| [source,js] | ||
| -------------------------------------------------- | ||
| { | ||
| "index" : "idx", | ||
| "index" : "myindex", | ||
| "shard" : 0, | ||
| "primary" : true, | ||
| "current_state" : "started", | ||
|
|
@@ -302,7 +302,7 @@ because moving the shard to another node does not form a better cluster balance: | |
| [source,js] | ||
| -------------------------------------------------- | ||
| { | ||
| "index" : "idx", | ||
| "index" : "myindex", | ||
| "shard" : 0, | ||
| "primary" : true, | ||
| "current_state" : "started", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should address the needed changes @DaveCTurner mentioned. This snippet (or something like it) is required to pass the CI tests.