Failed to close store on shard deletion – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 1.3-1.3

Briefly, this error occurs when Elasticsearch encounters an issue while trying to close the store associated with a shard during its deletion process. This could be due to a file lock, a network issue, or a disk space problem. To resolve this, you can try restarting the Elasticsearch node, checking for any network issues, or ensuring there’s enough disk space. If the problem persists, you may need to manually delete the shard files from the data directory, but this should be done with caution as it can lead to data loss.

This guide will help you check for common problems that cause the log ” failed to close store on shard deletion ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: index and shard.

Log Context

Log “failed to close store on shard deletion” classname is InternalIndexService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

         Store store = shardInjector.getInstance(Store.class);
        // and close it
        try {
            store.close();
        } catch (Throwable e) {
            logger.warn("failed to close store on shard deletion"; e);
        }
        Injectors.close(injector);
    }
}





 

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?