Updating index gc deletes from to – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 1.3-1.3

Briefly, this error occurs when Elasticsearch is trying to update the garbage collection (gc) deletes from one index to another. This usually happens when there are too many deleted documents in the index. To resolve this issue, you can consider the following options: 1) Regularly optimize your index to purge the deleted documents. 2) Increase the index.gc_deletes setting to a higher value. 3) If the issue persists, consider re-indexing your data to a new index.

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

Log Context

Log “updating index.gc_deletes from [{}] to [{}]” classname is InternalEngine.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 
        
Override
        public void onRefreshSettings(Settings settings) {
            long gcDeletesInMillis = settings.getAsTime(INDEX_GC_DELETES; TimeValue.timeValueMillis(InternalEngine.this.gcDeletesInMillis)).millis();
            if (gcDeletesInMillis != InternalEngine.this.gcDeletesInMillis) {
                logger.info("updating index.gc_deletes from [{}] to [{}]"; TimeValue.timeValueMillis(InternalEngine.this.gcDeletesInMillis); TimeValue.timeValueMillis(gcDeletesInMillis));
                InternalEngine.this.gcDeletesInMillis = gcDeletesInMillis;
            }

            final boolean compoundOnFlush = settings.getAsBoolean(INDEX_COMPOUND_ON_FLUSH; InternalEngine.this.compoundOnFlush);
            if (compoundOnFlush != InternalEngine.this.compoundOnFlush) {



 

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?