DLM successfully force merged index – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 8.9-8.9

Briefly, this error occurs when Elasticsearch’s Data Lifecycle Management (DLM) policy is set to force merge an index. This is not necessarily an error, but an informational message indicating that the force merge operation has been successfully completed. Force merge is used to reduce the number of segments in an index, improving search performance. If this operation is causing issues, you can adjust the DLM policy to avoid force merging, monitor the system resources during the operation to ensure they are not overwhelmed, or schedule the force merge during off-peak hours to minimize impact on performance.

This guide will help you check for common problems that cause the log ” DLM successfully force merged index [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: index.

Log Context

Log “DLM successfully force merged index [{}]” classname is DataLifecycleService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                        forceMergeResponse.getSuccessfulShards();
                        forceMergeResponse.getTotalShards()
                    );
                    onFailure(new ElasticsearchException(message));
                } else {
                    logger.info("DLM successfully force merged index [{}]"; targetIndex);
                    setForceMergeCompletedTimestamp(targetIndex; listener);
                }
            }

            @Override

 

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?