About to create first concrete index with alias – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.8-8.9

Briefly, this error occurs when Elasticsearch is attempting to create a new concrete index with an alias that already exists. This can cause confusion as the alias is meant to point to a single index, but now it’s pointing to multiple indices. To resolve this issue, you can either delete the existing alias before creating the new index, or use the Rollover API which allows an alias to be switched atomically from one index to another, ensuring there is no overlap. Alternatively, you can use unique names for each new index to avoid this issue.

This guide will help you check for common problems that cause the log ” About to create first concrete index [{}] with alias [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin, index, alias.

Log Context

Log “About to create first concrete index [{}] with alias [{}]” classname is MlIndexAndAlias.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

        String index;
        String alias;
        boolean addAlias;
        ActionListener listener
    ) {
        logger.info("About to create first concrete index [{}] with alias [{}]"; index; alias);
        CreateIndexRequestBuilder requestBuilder = client.admin().indices().prepareCreate(index);
        if (addAlias) {
            requestBuilder.addAlias(new Alias(alias).isHidden(true));
        }
        CreateIndexRequest request = requestBuilder.request();

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?