Unknown parameter incremental file count – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 6.8-8.9

Briefly, this error occurs when an unrecognized parameter, in this case [incremental_file_count], is used in an Elasticsearch request. Elasticsearch cannot process the request because it doesn’t understand this parameter. To resolve this issue, you should first verify the parameter name for any typos or syntax errors. If the parameter name is correct, check if it’s supported in your version of Elasticsearch. If it’s not supported, you may need to upgrade your Elasticsearch version or find an alternative way to achieve your goal without using this parameter.

This guide will help you check for common problems that cause the log ” unknown parameter [incremental_file_count] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: blobstore, index.

Log Context

Log “unknown parameter [incremental_file_count]” class name is BlobStoreIndexShardSnapshot.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 private static final String NAME = "name";
 private static final String START_TIME = "start_time";
 private static final String TIME = "time";
 private static final String FILES = "files";
 // for the sake of BWC keep the actual property names as in 6.x
 // + there is a constraint in #fromXContent() that leads to ElasticsearchParseException("unknown parameter [incremental_file_count]");
 private static final String INCREMENTAL_FILE_COUNT = "number_of_files";
 private static final String INCREMENTAL_SIZE = "total_size";  private static final ParseField PARSE_NAME = new ParseField(NAME);
 private static final ParseField PARSE_START_TIME = new ParseField(START_TIME);

 

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?