Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elasticsearch warning - ignore_throttled parameter is deprecated

We are getting spammed in our logs with tons of the following warnings:

2022-05-17 09:30:42 WARN  RestClient:65 - request [POST http://10.179.202.149:9201/categories/_search?typed_keys=true&ignore_unavailable=false&expand_wildcards=open&allow_no_indices=true&ignore_throttled=true&search_type=query_then_fetch&batched_reduce_size=512&ccs_minimize_roundtrips=true] returned 1 warnings: [299 Elasticsearch-7.17.1-e5acb99f822233d62d6444ce45a4543dc1c8059a "[ignore_throttled] parameter is deprecated because frozen indices have been deprecated. Consider cold or frozen tiers in place of frozen indices."]

All the threads online about this subject are not useful as they are indicating to just not to use "frozen indices", but we are not using them explicitly and just getting spammed with this warning.

We have not found a way to turn this warning off (RestClient is an internal Elasticsearch method), has anyone found an actual solution for this?

Elasticsearch: 7.17.1

Thanks

like image 817
Alex Avatar asked Oct 20 '25 17:10

Alex


1 Answers

You can see this PR and it is fixed in version 7.17.2. So You need to update version of your Java client like below in maven;

<dependency>
     <groupId>org.elasticsearch.client</groupId>
     <artifactId>elasticsearch-rest-high-level-client</artifactId>
     <version>7.17.2</version>
</dependency>
like image 197
Sagar Patel Avatar answered Oct 23 '25 06:10

Sagar Patel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!