You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to deploy the chart into my personal namespace to test, but the code doesn't work unless there is already the neuro_query_docker index in the elasticsearch DB. This doesn't really impact the current architecture as anytime the chart is upgraded it will use the existing PVC but would be good to eventually fix if we ever need to redeploy. The offending function is here:
I believe we just need a try/catch around the esConn.indices for the elasticsearch NotFoundError
Stack Trace
Traceback (most recent call last):
File "/usr/local/renci/bin/loadNeuroQueryTermsSapBert.py", line 148, in <module>
main(args)
File "/usr/local/renci/bin/loadNeuroQueryTermsSapBert.py", line 41, in main
insertDataIntoIndex(termFile, indexName, shards, esConn)
File "/usr/local/renci/bin/loadNeuroQueryTermsSapBert.py", line 46, in insertDataIntoIndex
res = esConn.indices.refresh(indexName)
File "/usr/local/lib/python3.8/site-packages/elasticsearch/client/utils.py", line 153, in _wrapped
return func(*args, params=params, headers=headers, **kwargs)
File "/usr/local/lib/python3.8/site-packages/elasticsearch/client/indices.py", line 60, in refresh
return self.transport.perform_request(
File "/usr/local/lib/python3.8/site-packages/elasticsearch/transport.py", line 415, in perform_request
raise e
File "/usr/local/lib/python3.8/site-packages/elasticsearch/transport.py", line 381, in perform_request
status, headers_response, data = connection.perform_request(
File "/usr/local/lib/python3.8/site-packages/elasticsearch/connection/http_urllib3.py", line 275, in perform_request
self._raise_error(response.status, raw_data)
File "/usr/local/lib/python3.8/site-packages/elasticsearch/connection/base.py", line 322, in _raise_error
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(
elasticsearch.exceptions.NotFoundError: NotFoundError(404, 'index_not_found_exception', 'no such index [neuro_query_docker]', neuro_query_docker, index_or_alias)
The text was updated successfully, but these errors were encountered:
I was trying to deploy the chart into my personal namespace to test, but the code doesn't work unless there is already the
neuro_query_docker
index in the elasticsearch DB. This doesn't really impact the current architecture as anytime the chart is upgraded it will use the existing PVC but would be good to eventually fix if we ever need to redeploy. The offending function is here:neuro-query-dense-vectors/loadNeuroQueryTermsSapBert.py
Lines 43 to 80 in 6ae5cf3
I believe we just need a try/catch around the
esConn.indices
for the elasticsearchNotFoundError
Stack Trace
The text was updated successfully, but these errors were encountered: