I have a 3 nodes cluster with 1 primary shards on 1 node and 1 replica on each other node.
My index has a name and an alias "current".
I am bulk inserting into the master only via the alias name "current".
That's working just fine. When my test kills the master in order to check failover,
the next time I try to bulk insert I get Invalid index name [current], already exists as alias:
ERROR 2017-12-11 11:22:23,310 [EventPublisher~i58] : ElasticManagementClient(ElasticManagementClient.create:290) - failure in bulk execution: : index [current], type [events], id , message [RemoteTransportException[[node-1][172.16.65.157:9300][indices:admin/create]]; nested: InvalidIndexNameException[Invalid index name [current], already exists as alias];]
What is the problem?