PR #265 #568
GitHub Actions / JUnit Test Report
failed
Dec 6, 2024 in 0s
73 tests run, 26 passed, 46 skipped, 1 failed.
Annotations
Check failure on line 173 in /home/runner/work/ch-tools/ch-tools
github-actions / JUnit Test Report
.Set finished to ddl with removed host.
("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))
Raw output
Failing step: And we execute query on clickhouse02 ... failed in 20.771s
"""
CREATE DATABASE test_db ON CLUSTER 'cluster_with_removed_host'
"""
Location: features/chadmin_zookeeper.feature:173
Traceback (most recent call last):
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/urllib3/response.py", line 761, in _update_chunk_length
self.chunk_left = int(line, 16)
ValueError: invalid literal for int() with base 16: b''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/urllib3/response.py", line 444, in _error_catcher
yield
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/urllib3/response.py", line 828, in read_chunked
self._update_chunk_length()
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/urllib3/response.py", line 765, in _update_chunk_length
raise InvalidChunkLength(self, line)
urllib3.exceptions.InvalidChunkLength: InvalidChunkLength(got length b'', 0 bytes read)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/requests/models.py", line 760, in generate
for chunk in self.raw.stream(chunk_size, decode_content=True):
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/urllib3/response.py", line 624, in stream
for line in self.read_chunked(amt, decode_content=decode_content):
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/urllib3/response.py", line 857, in read_chunked
self._original_response.close()
File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/urllib3/response.py", line 461, in _error_catcher
raise ProtocolError("Connection broken: %r" % e, e)
urllib3.exceptions.ProtocolError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/behave/model.py", line 1329, in run
match.run(runner.context)
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/behave/matchers.py", line 98, in run
self.func(context, *args, **kwargs)
File "steps/clickhouse.py", line 32, in step_clickhouse_query
context.ret_code, context.response = get_response(context, node, context.text)
File "/home/runner/work/ch-tools/ch-tools/tests/modules/clickhouse.py", line 56, in get_response
return 200, str(execute_query(context, node, query=query))
File "/home/runner/work/ch-tools/ch-tools/tests/modules/clickhouse.py", line 147, in execute_query
response = client.query(query, format_=format_)
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/tenacity/__init__.py", line 289, in wrapped_f
return self(f, *args, **kw)
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/tenacity/__init__.py", line 379, in __call__
do = self.iter(retry_state=retry_state)
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/tenacity/__init__.py", line 314, in iter
return fut.result()
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 437, in result
return self.__get_result()
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
raise self._exception
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/tenacity/__init__.py", line 382, in __call__
result = fn(*args, **kwargs)
File "/home/runner/work/ch-tools/ch-tools/ch_tools/common/clickhouse/client/clickhouse_client.py", line 210, in query
return self._execute_http(
File "/home/runner/work/ch-tools/ch-tools/ch_tools/common/clickhouse/client/clickhouse_client.py", line 91, in _execute_http
response = requests.post(
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/requests/api.py", line 117, in post
return request('post', url, data=data, json=json, **kwargs)
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/requests/sessions.py", line 687, in send
r.content
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/requests/models.py", line 838, in content
self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''
File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.8/site-packages/requests/models.py", line 763, in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))
Loading