ShardId can t read metadata from store responding with empty – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 8.3-8.9

Briefly, this error occurs when Elasticsearch is unable to read the metadata from the store for a specific shard ID. This could be due to issues like data corruption, disk I/O errors, or insufficient permissions. To resolve this, you can try to restore the data from a backup, check the disk for errors, or ensure that Elasticsearch has the necessary permissions to access the data store. If the issue persists, you may need to reindex the data.

This guide will help you check for common problems that cause the log ” [” + shardId + “] can’t read metadata from store; responding with empty ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: metadata, indices, shard.

Log Context

Log “[” + shardId + “] can’t read metadata from store; responding with empty” classname is TransportNodesListShardStoreMetadata.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                        return storeFilesMetadata;
                    } catch (org.apache.lucene.index.IndexNotFoundException e) {
                        logger.trace(() -> "[" + shardId + "] node is missing index; responding with empty"; e);
                        return StoreFilesMetadata.EMPTY;
                    } catch (IOException e) {
                        logger.warn(() -> "[" + shardId + "] can't read metadata from store; responding with empty"; e);
                        return StoreFilesMetadata.EMPTY;
                    }
                }
            }
            final String customDataPath;

 

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?