Automatic plugin update on package update

Dear Community,

we ran into this kind of error multiple times:

Plugin [analysis-icu] was built for Elasticsearch version 7.5.0 but version 7.5.2 is running

So we had an Elasticsearch installation in CentOS 8

dnf install elasticsearch
/usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-icu

And if there are updates for elasticsearch available, after

dnf update

The service might not be able to start again because plugins are not updated automatically:

Plugin [analysis-icu] was built for Elasticsearch version 7.5.0 but version 7.5.2 is running

So of course you can solve this manually by using

/usr/share/elasticsearch/bin/elasticsearch-plugin remove analysis-icu
/usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-icu

But i wonder if the CentOS package for elasticsearch could be optimized in a way that plugins are re-installed automatically after dnf update?
Of course there might be workarounds for this e.g. like writing your own dnf hook, but since many people are affected by this problem, i wonder if there could be a generic solution inside the elasticsearch package itself.

Best regards,
Mario

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.