GeoIP Ingest plugin should be not break with feature migration #85756
Labels
>bug
:Core/Infra/Core
Core issues without another label
:Data Management/Ingest Node
Execution or management of Ingest Pipelines including GeoIP
Team:Core/Infra
Meta label for core/infra team
Team:Data Management
Meta label for data/management team
v8.2.1
v8.3.0
Bug
It is possible for a system feature migration to break the geoip-ingest plugin on a cluster that has been upgraded from 7.17 to 8.x. The system features migration will reindex the
.geoip_databases
index into a new index called.geoip_databases-reindexed-for-8
, then delete the original.geoip_databases
index and replace it with an alias. The plugin is written to expect.geoip_databases
to be a concrete index, so it fails to reload its database, and geoip ingest processors stop working.We need to fix the code so that running a system feature migration doesn't create this problem.
Reproducing
Steps to reproduce:
Here are some curl commands I used on my local, single-node cluster:
Expand for details
Workaround
The only fix I know of is to restore a geoip feature state from a snapshot taken before the system feature migration:
It doesn't really matter how old the snapshot is, because once the plugin is restored to a good state, it can update the geoip index.
Open questions
What approach should we take to fix this?
.geoip_databases
index doesn't contain any user data. We could just "migrate" it by deleting it and recreating it. This kind of fix would be the responsibility of the core-infra team..geoip_databases
is an alias, not a concrete index. This doesn't seem like something the plugin needs intrinsically, but it might be easier to do than changing the migration code.We should also look at giving users a more convenient way to reset the state of the geoip-ingest plugin. #70426 would have been really useful to have for this bug.
cc @dakrone, @gwbrown, @joegallo
The text was updated successfully, but these errors were encountered: