Skip to content

PR #265

PR #265 #563

GitHub Actions / JUnit Test Report failed Dec 5, 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

See this annotation in the file changed.

@github-actions 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.706s
  """
    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.10/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.10/site-packages/urllib3/response.py", line 444, in _error_catcher
    yield
  File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.10/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.10/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.10/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.10/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.10/site-packages/urllib3/response.py", line 816, in read_chunked
    with self._error_catcher():
  File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.10/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.10/site-packages/behave/model.py", line 1329, in run
    match.run(runner.context)
  File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.10/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.10/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.10/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.10/site-packages/tenacity/__init__.py", line 314, in iter
    return fut.result()
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
    return self.__get_result()
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
    raise self._exception
  File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.10/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.10/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.10/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.10/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.10/site-packages/requests/sessions.py", line 687, in send
    r.content
  File "/home/runner/work/ch-tools/ch-tools/.venv/lib/python3.10/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.10/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))