Skip to content

[7.x] Change GeoIP downloader policy after 30 days of no updates (#74099) #74296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 18, 2021

Conversation

probakowski
Copy link
Contributor

Backports the following commits to 7.x:

…4099)

This PR changes the way GeoIpDownloader and GeoIpProcessor handle situation when we are unable to update databases for 30 days. In that case:

GeoIpDownloader will delete all chunks from .geoip_databases index
DatabaseRegistry will delete all files on ingest nodes
GeoIpProcessor will tag document with tags: ["_geoip_expired_database"] field (same way as in Logstash)
This change also fixes bug with that breaks DatabaseRegistry and when it tires to download databases after updating timestamp only (GeoIpDownloader checks if there are new databases and updates timestamp because local databases are up to date)
@probakowski probakowski merged commit ba566b1 into elastic:7.x Jun 18, 2021
@probakowski probakowski deleted the backport/7.x/pr-74099 branch June 18, 2021 15:59
martijnvg pushed a commit that referenced this pull request Jun 21, 2021
…74328)

Adjust serialisation versioning now that: 'change GeoIP downloader policy after 30 days of no updates'  change has been back ported via #74296
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant