cloud-bulldozer / cloud-bulldozer/benchmark-wrapper

[uperf] Indexing issue causes result output not to be displayed.

Open
#105 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
19
Forks
56
PR merge metrics
No merged PRs in 30d

Description

Here is an example :

```










Traceback (most recent call last):
File "/opt/snafu/uperf-wrapper/uperf-wrapper.py", line 227, in
sys.exit(main())
File "/opt/snafu/uperf-wrapper/uperf-wrapper.py", line 221, in main
_index_result("ripsaw-uperf-results",server,port,documents)
File "/opt/snafu/uperf-wrapper/uperf-wrapper.py", line 27, in _index_result
es.index(index=index, body=result)
File "/usr/lib/python2.7/site-packages/elasticsearch/client/utils.py", line 84, in _wrapped
return func(*args, params=params, **kwargs)
File "/usr/lib/python2.7/site-packages/elasticsearch/client/__init__.py", line 364, in index
"POST", _make_path(index, doc_type, id), params=params, body=body
File "/usr/lib/python2.7/site-packages/elasticsearch/transport.py", line 353, in perform_request
timeout=timeout,
File "/usr/lib/python2.7/site-packages/elasticsearch/connection/http_urllib3.py", line 244, in perform_request
raise ConnectionError("N/A", str(e), e)
elasticsearch.exceptions.ConnectionError: ConnectionError(: Failed to establish a new connection: [Errno -2] Name or service not known) caused by: NewConnectionError(: Failed to establish a new connection: [Errno -2] Name or service not known)
```

We should catch this error, report a connection failure to the user, but still present the results.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.