mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Merge pull request #46301 from ClickHouse/revert-46281-tavplubix-patch-5
Revert "Beter diagnostics from http in clickhouse-test"
This commit is contained in:
commit
7448cd2110
@ -4,7 +4,6 @@
|
|||||||
# pylint: disable=global-variable-not-assigned
|
# pylint: disable=global-variable-not-assigned
|
||||||
# pylint: disable=too-many-lines
|
# pylint: disable=too-many-lines
|
||||||
# pylint: disable=anomalous-backslash-in-string
|
# pylint: disable=anomalous-backslash-in-string
|
||||||
# pylint: disable=raise-missing-from
|
|
||||||
|
|
||||||
import enum
|
import enum
|
||||||
from queue import Full
|
from queue import Full
|
||||||
@ -121,7 +120,6 @@ def clickhouse_execute_http(
|
|||||||
if default_format is not None:
|
if default_format is not None:
|
||||||
params["default_format"] = default_format
|
params["default_format"] = default_format
|
||||||
|
|
||||||
error_message = ""
|
|
||||||
for i in range(max_http_retries):
|
for i in range(max_http_retries):
|
||||||
try:
|
try:
|
||||||
client.request(
|
client.request(
|
||||||
@ -132,9 +130,8 @@ def clickhouse_execute_http(
|
|||||||
data = res.read()
|
data = res.read()
|
||||||
break
|
break
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
error_message += "\tAttempt {} failed: {}\n{}\n".format(i, str(ex), traceback.format_exc())
|
|
||||||
if i == max_http_retries - 1:
|
if i == max_http_retries - 1:
|
||||||
raise Exception("Failed to send a request after {} retries:\n{}".format(max_http_retries, error_message))
|
raise ex
|
||||||
|
|
||||||
sleep(i + 1)
|
sleep(i + 1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user