Skip to content

Commit

Permalink
add 'You can retry this error.' to MESSAGES_TO_RETRY
Browse files Browse the repository at this point in the history
  • Loading branch information
strtgbb committed Apr 12, 2024
1 parent d3bba55 commit ba0c45c
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions helpers/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"Shutdown is called for table",
# happens in SYSTEM SYNC REPLICA query if session with ZooKeeper is being reinitialized.
"is executing longer than distributed_ddl_task_timeout", # distributed TTL timeout message
"You can retry this error.", # happens with too many pending alters
]


Expand Down Expand Up @@ -1061,13 +1062,13 @@ def __init__(
self.use_specific_version
)

self.environ[
"CLICKHOUSE_SPECIFIC_BINARY"
] = self.specific_clickhouse_binary_path
self.environ["CLICKHOUSE_SPECIFIC_BINARY"] = (
self.specific_clickhouse_binary_path
)

self.environ[
"CLICKHOUSE_SPECIFIC_ODBC_BINARY"
] = self.clickhouse_specific_odbc_binary
self.environ["CLICKHOUSE_SPECIFIC_ODBC_BINARY"] = (
self.clickhouse_specific_odbc_binary
)

if self.clickhouse_binary_path.startswith(("http://", "https://")):
with Given(
Expand Down Expand Up @@ -1475,14 +1476,15 @@ def up(self, timeout=30 * 60):

with And("I set all the necessary environment variables"):
self.environ["COMPOSE_HTTP_TIMEOUT"] = "600"
self.environ[
"CLICKHOUSE_TESTS_SERVER_BIN_PATH"
] = self.clickhouse_binary_path
self.environ[
"CLICKHOUSE_TESTS_ODBC_BRIDGE_BIN_PATH"
] = self.clickhouse_odbc_bridge_binary_path or os.path.join(
os.path.dirname(self.clickhouse_binary_path),
"clickhouse-odbc-bridge",
self.environ["CLICKHOUSE_TESTS_SERVER_BIN_PATH"] = (
self.clickhouse_binary_path
)
self.environ["CLICKHOUSE_TESTS_ODBC_BRIDGE_BIN_PATH"] = (
self.clickhouse_odbc_bridge_binary_path
or os.path.join(
os.path.dirname(self.clickhouse_binary_path),
"clickhouse-odbc-bridge",
)
)
self.environ["CLICKHOUSE_TESTS_DIR"] = self.configs_dir

Expand Down

0 comments on commit ba0c45c

Please sign in to comment.