core-geonetwork
core-geonetwork copied to clipboard
update elasticsearch version dependency to 7.17 to avoid warnings about ignore_throttled
Describe the bug Using 4.0.6 against ES 7.17.5 triggers warnings in GN logs at each request:
WARN [org.elasticsearch.client.RestClient] - request [GET http://localhost:9400/_settings/index.blocks.read_only_allow_delete?master_timeout=30s&ignore_throttled=false&ignore_unavailable=false&expand_wildcards=open%2Cclosed&allow_no_indices=true] returned 1 warnings: [299 Elasticsearch-7.17.5-8d61b4f7ddf931f219e3745f295ed2bbc50c8e84 "[ignore_throttled] parameter is deprecated because frozen indices have been deprecated. Consider cold or frozen tiers in place of frozen indices."]
this comes from https://github.com/elastic/elasticsearch/pull/77479 and is fixed by updating the client to 7.17 cf https://github.com/elastic/elasticsearch/pull/84827
i know in the GN community that there's a debate between ES vs opensearch, but still filing the issue anyway. The last update to the ES version used was in 6324ae9e0
an ugly workaround is to add this to log4J.xml appender config:
<filter class="org.apache.log4j.varia.StringMatchFilter">
<param name="StringToMatch" value="ignore_throttled" />
<param name="AcceptOnMatch" value="false" />
</filter>
Latest 4.2.x and 4.4.x use Elasticsearch 7.17:
- https://github.com/geonetwork/core-geonetwork/blob/f9067da7d17067722e4a0efce2aad83c84150211/pom.xml#L1495
- https://github.com/geonetwork/core-geonetwork/blob/5fb3196504757c2f757245f452644a5c66de258b/pom.xml#L1524
fixed by #7368 - thanks !