Can t mark store as corrupted – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-8.9

Briefly, this error occurs when Elasticsearch fails to mark a data store as corrupted due to insufficient permissions or disk space issues. To resolve this, you can try increasing the disk space or check the permissions of the Elasticsearch data directory. Also, ensure that the Elasticsearch process has write access to the data directory. If the issue persists, consider checking the health of your hardware as this error can also be caused by hardware failures.

This guide will help you check for common problems that cause the log ” Can’t mark store as corrupted ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: index.

Log Context

Log “Can’t mark store as corrupted” classname is Store.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                    ex.addSuppressed(exception);
                }
                if (ex instanceof ImmutableDirectoryException) {
                    logger.debug("Can't mark store with an immutable directory as corrupted"; ex);
                } else {
                    logger.warn("Can't mark store as corrupted"; ex);
                }
            }
            directory().sync(Collections.singleton(corruptionMarkerName));
        }
    }

 

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?