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

Decide what to do w/ elastic instrumentation for version 7+ #620

Closed
codeboten opened this issue Aug 12, 2021 · 4 comments · Fixed by #1810
Closed

Decide what to do w/ elastic instrumentation for version 7+ #620

codeboten opened this issue Aug 12, 2021 · 4 comments · Fixed by #1810
Labels
backlog bug Something isn't working

Comments

@codeboten
Copy link
Contributor

codeboten commented Aug 12, 2021

The elastic instrumentation fails as of version 7.14.0, this was blocking CI due to some failures in the multithreaded tests that hangs indefinitely. The tests have been removed from tox, this issue is to decide what to do next.

More context:
https://github.com/elastic/elasticsearch-py/releases/tag/v7.14.0

https://elasticsearch-py.readthedocs.io/en/v7.14.0/transports.html#product-check-on-first-request

@codeboten codeboten added the bug Something isn't working label Aug 12, 2021
@owais
Copy link
Contributor

owais commented Aug 12, 2021

It should be pretty easy to mock the API check request and ensure it returns with X-Elastic-Product: Elasticsearch header.

@aabmass
Copy link
Member

aabmass commented Aug 12, 2021

More context from Alex's PR and slack, the tox output shows:

test_elasticsearch.py::TestElasticsearchIntegration::test_dsl_create FAILED                                                                        [  8%]
test_elasticsearch.py::TestElasticsearchIntegration::test_dsl_index FAILED                                                                         [ 16%]
test_elasticsearch.py::TestElasticsearchIntegration::test_dsl_search FAILED                                                                        [ 25%]
test_elasticsearch.py::TestElasticsearchIntegration::test_instrumentor FAILED                                                                      [ 33%]
test_elasticsearch.py::TestElasticsearchIntegration::test_multithread 

and the error messages (for the ones that failed and didn't hang) say

elasticsearch.exceptions.UnsupportedProductError: The client noticed that the server is not Elasticsearch and we do not support this unknown product

I agree it should be easy to mock. But will that fix the hanging test_multithread case, or is this potentially a bug in the upstream elastic search client?

@owais
Copy link
Contributor

owais commented Aug 12, 2021

Yeah we'll need to dig deeper. Mocking and making it accept the connection would be the first step anyway.

@github-actions
Copy link

This issue was marked stale due to lack of activity. It will be closed in 30 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants