Merge pull request #60109 from azat/tests/integration-query-retries

Do not retry queries if container is down in integration tests
This commit is contained in:
Alexey Milovidov 2024-02-19 19:23:39 +01:00 committed by GitHub
commit 425531067d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3484,6 +3484,10 @@ class ClickHouseInstance:
if check_callback(result):
return result
time.sleep(sleep_time)
except QueryRuntimeException as ex:
# Container is down, this is likely due to server crash.
if "No route to host" in str(ex):
raise
except Exception as ex:
# logging.debug("Retry {} got exception {}".format(i + 1, ex))
time.sleep(sleep_time)