-
Notifications
You must be signed in to change notification settings - Fork 86
Adds elastic-transport client support #191
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
Adds elastic-transport client support #191
Conversation
…art using newer ES ruby client.
| test_connection! | ||
| setup_serverless | ||
| if get_client.es_transport_client_type == "elasticsearch_transport" | ||
| require_relative "elasticsearch/patches/_elasticsearch_transport_http_manticore" |
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.
review note: _elasticsearch_transport_http_manticore sets user-agent and accept-encoding headers for the es-transport-client versions between 7.2 and 7.16. It seems to me we can remove this but I have kept so far as there are active 7.x users.
(I don't know which LS versions included >7.2 and <7.16 es-transport-client)
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.
same comments as the input plugin PR, lets document in code why we need this load+retry, and also be more explicit about the es ruby version the plugin is known to work with (7 + 8)
… add comments on the logics to support both elastic and elasticsearch transport gems.
b5371ac to
d6e26ea
Compare
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.
LGTM
…-transport-client Adds elastic-transport client support (cherry picked from commit ef2f5ec)
Fix the unit test cases caused by #191
Adds elastic-transport client support where opens LS-core a way to start using newer ES ruby client.
FYI: Failed Test plugin docs CI is not related to this change.