Skip to content

Commit

Permalink
[Testing] 7.x Disable geoip downloader (elastic#25272)
Browse files Browse the repository at this point in the history
Disable database updates via an Elasticsearch property ingest.geoip.downloader.enabled: false. This will cause Elasticsearch to use the circa 2019 maxmind database version that is embedded. This would work for now, but the embedded database will be removed in 8.x IIUC.

This prevents our golden file tests from failing everytime the database changes geo or asn values. It also prevents race conditions in tests that might run before the database has been updated or in cases where the downloader service is unavailable.

Closes: elastic#25159
(cherry picked from commit 3b4b10e)
  • Loading branch information
andrewkroh committed Apr 23, 2021
1 parent 9c3fe94 commit 8b4e927
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testing/environments/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ services:
- "transport.host=127.0.0.1"
- "http.host=0.0.0.0"
- "xpack.security.enabled=false"
# Disable geoip updates to prevent golden file test failures when the database
# changes and prevent race conditions between tests and database updates.
- "ingest.geoip.downloader.enabled=false"

logstash:
image: docker.elastic.co/logstash/logstash:7.13.0-SNAPSHOT
Expand Down

0 comments on commit 8b4e927

Please sign in to comment.