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

Should catch timeouts with Elasticsearch #97

Open
cjmyers opened this issue Mar 5, 2021 · 0 comments
Open

Should catch timeouts with Elasticsearch #97

cjmyers opened this issue Mar 5, 2021 · 0 comments

Comments

@cjmyers
Copy link
Collaborator

cjmyers commented Mar 5, 2021

2021-03-04 21:05:25.498059] [ERROR] Returning error TransportError(500, 'search_phase_execution_exception', 'Determinizing automaton with 21621 states and 38970 transitions would result in more than 10000 states.')
Traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "/SBOLExplorer/flask/explorer.py", line 165, in sparql_search_endpoint
response = jsonify(search.search(sparql_query, utils.get_uri2rank(), utils.get_clusters(), default_graph_uri))
File "/SBOLExplorer/flask/search.py", line 487, in search
es_response = search_es(es_query)
File "/SBOLExplorer/flask/search.py", line 49, in search_es
return utils.get_es().search(index=utils.get_config()['elasticsearch_index_name'], body=body)
File "/usr/local/lib/python3.6/dist-packages/elasticsearch/client/utils.py", line 76, in _wrapped
return func(*args, params=params, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/elasticsearch/client/init.py", line 655, in search
doc_type, '_search'), params=params, body=body)
File "/usr/local/lib/python3.6/dist-packages/elasticsearch/transport.py", line 318, in perform_request
status, headers_response, data = connection.perform_request(method, url, params, body, headers=headers, ignore=ignore, timeout=timeout)
File "/usr/local/lib/python3.6/dist-packages/elasticsearch/connection/http_urllib3.py", line 185, in perform_request
self._raise_error(response.status, raw_data)
File "/usr/local/lib/python3.6/dist-packages/elasticsearch/connection/base.py", line 125, in _raise_error
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
elasticsearch.exceptions.TransportError: TransportError(500, 'search_phase_execution_exception', 'Determinizing automaton with 21621 states and 38970 transitions would result in more than 10000 states.')

[2021-03-04 21:05:25.508841] [ERROR] Returning error TransportError(500, 'search_phase_execution_exception', 'Determinizing automaton with 21621 states and 38970 transitions would result in more than 10000 states.')
Traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "/SBOLExplorer/flask/explorer.py", line 165, in sparql_search_endpoint
response = jsonify(search.search(sparql_query, utils.get_uri2rank(), utils.get_clusters(), default_graph_uri))
File "/SBOLExplorer/flask/search.py", line 487, in search
es_response = search_es(es_query)
File "/SBOLExplorer/flask/search.py", line 49, in search_es
return utils.get_es().search(index=utils.get_config()['elasticsearch_index_name'], body=body)
File "/usr/local/lib/python3.6/dist-packages/elasticsearch/client/utils.py", line 76, in _wrapped
return func(*args, params=params, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/elasticsearch/client/init.py", line 655, in search
doc_type, '_search'), params=params, body=body)
File "/usr/local/lib/python3.6/dist-packages/elasticsearch/transport.py", line 318, in perform_request
status, headers_response, data = connection.perform_request(method, url, params, body, headers=headers, ignore=ignore, timeout=timeout)
File "/usr/local/lib/python3.6/dist-packages/elasticsearch/connection/http_urllib3.py", line 185, in perform_request
self._raise_error(response.status, raw_data)
File "/usr/local/lib/python3.6/dist-packages/elasticsearch/connection/base.py", line 125, in _raise_error
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
elasticsearch.exceptions.TransportError: TransportError(500, 'search_phase_execution_exception', 'Determinizing automaton with 21621 states and 38970 transitions would result in more than 10000 states.')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant