Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ public void testUseGeoIpProcessorWithDownloadedDBs() throws Exception {
});
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/79074")
@TestLogging(value = "org.elasticsearch.ingest.geoip:TRACE", reason = "https://github.com/elastic/elasticsearch/issues/79074")
public void testStartWithNoDatabases() throws Exception {
assumeTrue("only test with fixture to have stable results", ENDPOINT != null);
putPipeline();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,11 @@ void updateDatabase(String databaseFileName, String recordedMd5, Path file) {
Predicate<GeoIpProcessor.DatabaseUnavailableProcessor> predicate = p -> databaseFileName.equals(p.getDatabaseName());
var ids = ingestService.getPipelineWithProcessorType(GeoIpProcessor.DatabaseUnavailableProcessor.class, predicate);
if (ids.isEmpty() == false) {
LOGGER.debug("pipelines [{}] found to reload", ids);
for (var id : ids) {
try {
ingestService.reloadPipeline(id);
LOGGER.debug(
LOGGER.trace(
"successfully reloaded pipeline [{}] after downloading of database [{}] for the first time",
id,
databaseFileName
Expand All @@ -343,6 +344,8 @@ void updateDatabase(String databaseFileName, String recordedMd5, Path file) {
);
}
}
} else {
LOGGER.debug("no pipelines found to reload");
}
}
LOGGER.info("successfully reloaded changed geoip database file [{}]", file);
Expand Down