Could not get completion stats – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 2.3-2.3

Briefly, this error occurs when Elasticsearch is unable to retrieve the completion statistics for an operation. This could be due to a variety of reasons such as insufficient permissions, network issues, or a problem with the Elasticsearch cluster itself. To resolve this issue, you can check the user permissions, ensure the network connectivity is stable, and verify the health of the Elasticsearch cluster. If the problem persists, consider checking the Elasticsearch logs for more detailed error information.

This log is related to search problems, in addition to reading the guide below you can use the free Search Log Analyzer. With Opster’s Analyzer, you can easily locate slow searches and understand what led to them adding additional load to your system. The tool is free and takes just 2 minutes to run.

Log Context

Log “Could not get completion stats” classname is Completion090PostingsFormat.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                         CompletionTerms completionTerms = (CompletionTerms) terms;
                        completionStats.add(completionTerms.stats(fieldNamePatterns));
                    }
                }
            } catch (IOException ioe) {
                logger.error("Could not get completion stats"; ioe);
            }
        }

        return completionStats;
    }




 

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?