You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You could create a a elasticsearch index with the same name of an alias without error. But this will result in a state in which you cannot make any actions on said index. In fact an action like
DELETE <index>
will result in...
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "The provided expression [mydata] matches an alias, specify the corresponding concrete indices instead."
}
],
"type": "illegal_argument_exception",
"reason": "The provided expression [mydata] matches an alias, specify the corresponding concrete indices instead."
},
"status": 400
}
Restarting the node will not be succesfull, and there will be the following error:
2022-12-04 15:41:49 {"@timestamp":"2022-12-04T14:41:49.675Z", "log.level":"ERROR", "message":"fatal exception while booting Elasticsearch", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.bootstrap.Elasticsearch","elasticsearch.node.name":"9c6f45711d60","elasticsearch.cluster.name":"docker-cluster","error.type":"java.lang.IllegalStateException","error.message":"index, alias, and data stream names need to be unique, but the following duplicates were found [mydata (alias of [mydata/1Y69sJxZT1qIkKnM-w4ERA]) conflicts with index]","error.stack_trace":"java.lang.IllegalStateException: index, alias, and data stream names need to be unique, but the following duplicates were found [mydata (alias of [mydata/1Y69sJxZT1qIkKnM-w4ERA]) conflicts with index]\n\tat [email protected]/org.elasticsearch.cluster.metadata.Metadata$Builder.ensureNoNameCollisions(Metadata.java:2225)\n\tat [email protected]/org.elasticsearch.cluster.metadata.Metadata$Builder.build(Metadata.java:2135)\n\tat [email protected]/org.elasticsearch.cluster.metadata.Metadata$Builder.build(Metadata.java:2071)\n\tat [email protected]/org.elasticsearch.gateway.PersistedClusterStateService.loadOnDiskState(PersistedClusterStateService.java:618)\n\tat [email protected]/org.elasticsearch.gateway.PersistedClusterStateService.loadBestOnDiskState(PersistedClusterStateService.java:465)\n\tat [email protected]/org.elasticsearch.gateway.PersistedClusterStateService.loadBestOnDiskState(PersistedClusterStateService.java:380)\n\tat [email protected]/org.elasticsearch.gateway.GatewayMetaState.start(GatewayMetaState.java:101)\n\tat [email protected]/org.elasticsearch.node.Node.start(Node.java:1294)\n\tat [email protected]/org.elasticsearch.bootstrap.Elasticsearch.start(Elasticsearch.java:436)\n\tat [email protected]/org.elasticsearch.bootstrap.Elasticsearch.initPhase3(Elasticsearch.java:229)\n\tat [email protected]/org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:67)\n"}
Steps to Reproduce
In order to reproduce you could create an index_template containing an alias
Elasticsearch Version
v8.5
Installed Plugins
No response
Java Version
bundled
OS Version
any
Problem Description
You could create a a elasticsearch index with the same name of an alias without error. But this will result in a state in which you cannot make any actions on said index. In fact an action like
DELETE <index>
will result in...
Restarting the node will not be succesfull, and there will be the following error:
2022-12-04 15:41:49 {"@timestamp":"2022-12-04T14:41:49.675Z", "log.level":"ERROR", "message":"fatal exception while booting Elasticsearch", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.bootstrap.Elasticsearch","elasticsearch.node.name":"9c6f45711d60","elasticsearch.cluster.name":"docker-cluster","error.type":"java.lang.IllegalStateException","error.message":"index, alias, and data stream names need to be unique, but the following duplicates were found [mydata (alias of [mydata/1Y69sJxZT1qIkKnM-w4ERA]) conflicts with index]","error.stack_trace":"java.lang.IllegalStateException: index, alias, and data stream names need to be unique, but the following duplicates were found [mydata (alias of [mydata/1Y69sJxZT1qIkKnM-w4ERA]) conflicts with index]\n\tat [email protected]/org.elasticsearch.cluster.metadata.Metadata$Builder.ensureNoNameCollisions(Metadata.java:2225)\n\tat [email protected]/org.elasticsearch.cluster.metadata.Metadata$Builder.build(Metadata.java:2135)\n\tat [email protected]/org.elasticsearch.cluster.metadata.Metadata$Builder.build(Metadata.java:2071)\n\tat [email protected]/org.elasticsearch.gateway.PersistedClusterStateService.loadOnDiskState(PersistedClusterStateService.java:618)\n\tat [email protected]/org.elasticsearch.gateway.PersistedClusterStateService.loadBestOnDiskState(PersistedClusterStateService.java:465)\n\tat [email protected]/org.elasticsearch.gateway.PersistedClusterStateService.loadBestOnDiskState(PersistedClusterStateService.java:380)\n\tat [email protected]/org.elasticsearch.gateway.GatewayMetaState.start(GatewayMetaState.java:101)\n\tat [email protected]/org.elasticsearch.node.Node.start(Node.java:1294)\n\tat [email protected]/org.elasticsearch.bootstrap.Elasticsearch.start(Elasticsearch.java:436)\n\tat [email protected]/org.elasticsearch.bootstrap.Elasticsearch.initPhase3(Elasticsearch.java:229)\n\tat [email protected]/org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:67)\n"}
Steps to Reproduce
In order to reproduce you could create an
index_template
containing an aliassuch as (... from the docs):
and then if you create a index with the same name of the alias such as:
PUT /mydata
It will create correctly the index.
but then no operation is permitted on the index
Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: