-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Closed
Labels
:Data Management/Indices APIsDO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead.DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead.>bughelp wantedadoptmeadoptme
Description
Executing an atomic alias operations on the same index and same alias returns inconsistent results:
# 1) Put an index
PUT some-concrete-index
# 2) no alias exists yet
GET some-concrete-index/_alias
# 3) add an alias, then remove it
POST /_aliases
{
"actions": [
{
"add": {
"index": "some-concrete-index",
"alias": "oci-cmdb_service_members"
}
},
{
"remove": {
"index": "some-concrete-index",
"alias": "oci-cmdb_service_members"
}
}
]
}
# 4) Order shouldn't matter, and it does not seem to, as the alias now exists
GET some-concrete-index/_alias
#5) Execute the same operation again:
POST /_aliases
{
"actions": [
{
"add": {
"index": "some-concrete-index",
"alias": "oci-cmdb_service_members"
}
},
{
"remove": {
"index": "some-concrete-index",
"alias": "oci-cmdb_service_members"
}
}
]
}
#6) The alias is removed now
GET some-concrete-index/_alias
To sum up:
The same request will produce different result:
- If the alias doesn’t exist before the request, it will be created
- If the alias doest exists, it will be removed
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Data Management/Indices APIsDO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead.DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead.>bughelp wantedadoptmeadoptme
Type
Fields
Give feedbackNo fields configured for issues without a type.