我们的日志中有大量的警告:
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."]
关于这个主题的所有在线线程都没有用,因为它们只是表明不使用“冻结索引”,但是我们没有显式地使用它们,只是被这个警告垃圾处理。
我们还没有找到关闭此警告的方法(RestClient是一种内部的弹性搜索方法),有人找到了这个问题的实际解决方案吗?
Elasticsearch: 7.17.1
谢谢
发布于 2022-05-17 11:01:12
您可以看到这 PR,并且它在7.17.2
版本中是固定的。因此,您需要更新Java客户机的版本,如下面的maven中所示;
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>elasticsearch-rest-high-level-client</artifactId>
<version>7.17.2</version>
</dependency>
https://stackoverflow.com/questions/72271872
复制相似问题