-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Correctly handling download_database_on_pipeline_creation within a pipeline processor within a default or final pipeline #131236
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
base: main
Are you sure you want to change the base?
Conversation
…peline processor within a default or final pipeline
Pinging @elastic/es-data-management (Team:Data Management) |
Hi @masseyke, I've created a changelog YAML for you. |
…thub.com:masseyke/elasticsearch into fix/geoip-download_database_on_pipeline_creation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a bug where GeoIP databases were not being downloaded when download_database_on_pipeline_creation
is set to false but the GeoIP processor is referenced through nested pipeline processors within default or final pipelines. The fix ensures proper recursive traversal of pipeline processors to detect GeoIP processors at any nesting level.
Key changes:
- Enhanced GeoIP processor detection to recursively traverse pipeline processors
- Added cycle detection to prevent stack overflow in pipelines with circular references
- Comprehensive test coverage for nested pipeline scenarios
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
GeoIpDownloaderTaskExecutor.java | Core logic enhancement to recursively detect GeoIP processors in nested pipeline processors with cycle detection |
GeoIpDownloaderTaskExecutorTests.java | New test cases covering nested pipeline scenarios and recursive pipeline detection |
docs/changelog/131236.yaml | Changelog entry documenting the bug fix |
We are supposed to load a geoip database even if
download_database_on_pipeline_creation
is set to false, if it is referenced from a default or final processor. However, if the geoip processor is referenced from a pipeline that is referenced as a pipeline processor from the default or final pipeline, we do not correctly do this. The result is that the database is not downloaded, and all data is tagged with something like_geoip_database_unavailable_GeoLite2-City.mmdb
rather than having geo data added to it.Related: #96624