Skip to content
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

Inject the backend query type map for pluggable backend selection #21121

Merged
merged 5 commits into from
Dec 6, 2024

Conversation

kroepke
Copy link
Member

@kroepke kroepke commented Dec 4, 2024

always also bind backends in the generic map binder, even for versioned backends
in non-versioned backends, use the map binder directly so the engine can pick the correct backend based on the BackendQuery instance used

for query normalization, ignore non-elasticsearch based queries for now, we will need to address normalizers later to make them type safe (or just live with the instanceof check)

Simplified version of #21073
The minimal version for making this work is in https://github.com/Graylog2/graylog-plugin-enterprise/pull/9343.

/nocl
/prd https://github.com/Graylog2/graylog-plugin-enterprise/pull/9343

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

always also bind backends in the generic map binder, even for versioned backends in non-versioned backends, use the map binder directly so the engine can pick the correct backend based on the BackendQuery instance used

for query normalization, ignore non-elasticsearch based queries for now, we will need to address normalizers later to make them type safe (or just live with the instanceof check)

Simplified version of #21073
@kroepke kroepke requested review from dennisoelkers, luk-kaminski and janheise and removed request for dennisoelkers and luk-kaminski December 4, 2024 13:26
@kroepke
Copy link
Member Author

kroepke commented Dec 4, 2024

turns out mixing them doesn't work, because the elasticsearch-based ones have the same name, but all bindings are installed :(
@kroepke kroepke marked this pull request as draft December 5, 2024 10:47
@kroepke kroepke marked this pull request as ready for review December 5, 2024 13:00
Copy link
Contributor

@luk-kaminski luk-kaminski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, seems to work fine, thx!

@kroepke kroepke merged commit 81ecd12 into master Dec 6, 2024
6 checks passed
@kroepke kroepke deleted the queryengine-backend-selection branch December 6, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants