-
Notifications
You must be signed in to change notification settings - Fork 25.2k
add missing test2
index in alias example
#39212
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
Conversation
If I got the idea of aliases properly, I think that the index "test2" should have a reference in the example above of the following sentence: " ... we associate the alias `alias1` to both `test` and `test2` ... "
Pinging @elastic/es-core-features |
} | ||
] | ||
} | ||
-------------------------------------------------- | ||
// CONSOLE | ||
// TEST[s/^/PUT test\n/] | ||
// TEST[s/^/PUT test\nPUT test2\n/] | ||
|
||
In this example, we associate the alias `alias1` to both `test` and `test2`, where |
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.
Reading the rest of this example, I think the final section may be incorrect as well:
To swap which index is the write index for an alias, the Aliases API can be leveraged to
do an atomic swap. The swap is not dependent on the ordering of the actions.
POST /_aliases
{
"actions" : [
{
"add" : {
"index" : "test",
"alias" : "alias1",
"is_write_index" : true
}
}, {
"add" : {
"index" : "test2",
"alias" : "alias1",
"is_write_index" : false
}
}
]
}
Given the description, it seems like the boolean values for is_write_index
should be flipped. I think it'd be nice to fix that in this PR as well, if you also think that's reasonable?
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.
ah, I see. I think, when writing the docs, this was meant to be thought of as a separate example. Now I see that it feels like a continuation of the previous
swap which is write/read
thanks Julie, updated! |
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.
Looks good to me!
thanks! |
* missing 'test2' index example (elastic#39055) If I got the idea of aliases properly, I think that the index "test2" should have a reference in the example above of the following sentence: " ... we associate the alias `alias1` to both `test` and `test2` ... " * add PUT test2 * Update aliases.asciidoc swap which is write/read
* missing 'test2' index example (elastic#39055) If I got the idea of aliases properly, I think that the index "test2" should have a reference in the example above of the following sentence: " ... we associate the alias `alias1` to both `test` and `test2` ... " * add PUT test2 * Update aliases.asciidoc swap which is write/read
* missing 'test2' index example (elastic#39055) If I got the idea of aliases properly, I think that the index "test2" should have a reference in the example above of the following sentence: " ... we associate the alias `alias1` to both `test` and `test2` ... " * add PUT test2 * Update aliases.asciidoc swap which is write/read
* missing 'test2' index example (elastic#39055) If I got the idea of aliases properly, I think that the index "test2" should have a reference in the example above of the following sentence: " ... we associate the alias `alias1` to both `test` and `test2` ... " * add PUT test2 * Update aliases.asciidoc swap which is write/read
* missing 'test2' index example (#39055) If I got the idea of aliases properly, I think that the index "test2" should have a reference in the example above of the following sentence: " ... we associate the alias `alias1` to both `test` and `test2` ... " * add PUT test2 * Update aliases.asciidoc swap which is write/read Co-authored-by: Guilherme Ferreira <[email protected]>
* missing 'test2' index example (#39055) If I got the idea of aliases properly, I think that the index "test2" should have a reference in the example above of the following sentence: " ... we associate the alias `alias1` to both `test` and `test2` ... " * add PUT test2 * Update aliases.asciidoc swap which is write/read Co-authored-by: Guilherme Ferreira <[email protected]>
* missing 'test2' index example (#39055) If I got the idea of aliases properly, I think that the index "test2" should have a reference in the example above of the following sentence: " ... we associate the alias `alias1` to both `test` and `test2` ... " * add PUT test2 * Update aliases.asciidoc swap which is write/read Co-authored-by: Guilherme Ferreira <[email protected]>
* missing 'test2' index example (#39055) If I got the idea of aliases properly, I think that the index "test2" should have a reference in the example above of the following sentence: " ... we associate the alias `alias1` to both `test` and `test2` ... " * add PUT test2 * Update aliases.asciidoc swap which is write/read Co-authored-by: Guilherme Ferreira <[email protected]>
* missing 'test2' index example (elastic#39055) If I got the idea of aliases properly, I think that the index "test2" should have a reference in the example above of the following sentence: " ... we associate the alias `alias1` to both `test` and `test2` ... " * add PUT test2 * Update aliases.asciidoc swap which is write/read
* missing 'test2' index example (elastic#39055) If I got the idea of aliases properly, I think that the index "test2" should have a reference in the example above of the following sentence: " ... we associate the alias `alias1` to both `test` and `test2` ... " * add PUT test2 * Update aliases.asciidoc swap which is write/read
from original PR:
this PR re-applies #39055. That PR was prematurely merged with a failing test.