Failed to perform engine refresh – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-8.9

Briefly, this error occurs when Elasticsearch is unable to refresh the index. This could be due to a lack of system resources, a large number of shards, or a heavy indexing load. To resolve this issue, you can try to increase system resources, reduce the number of shards, or balance the indexing load. Additionally, check for any underlying hardware issues that might be causing this error.

This guide will help you check for common problems that cause the log ” Failed to perform engine refresh ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: index, refresh, shard.

Log Context

Log “Failed to perform engine refresh” classname is IndexShard.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                // ignore; we are being shutdown
            } else if (rfee.getCause() instanceof ThreadInterruptedException) {
                // ignore; we are being shutdown
            } else {
                if (state != IndexShardState.CLOSED) {
                    logger.warn("Failed to perform engine refresh"; e);
                }
            }
        } else {
            if (state != IndexShardState.CLOSED) {
                logger.warn("Failed to perform engine refresh"; e);

 

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?