Skip to content

Commit ceab66c

Browse files
committed
Retry ClickHouse deploy preflight
1 parent d021adb commit ceab66c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎scripts/preflight-control-plane-host.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ probe_clickhouse() {
255255
local password="$4"
256256
local exists
257257
url="${url%/}"
258-
if curl -fsS --max-time 10 -u "$user:$password" \
258+
if curl -fsS --max-time 10 --retry 3 --retry-delay 2 --retry-all-errors -u "$user:$password" \
259259
"$url/?database=$database&query=SELECT%201" >/dev/null; then
260260
operator_ok "ClickHouse connectivity probe passed"
261261
else
@@ -264,6 +264,7 @@ probe_clickhouse() {
264264
fi
265265
exists="$(
266266
curl -fsS --max-time 10 -u "$user:$password" \
267+
--retry 3 --retry-delay 2 --retry-all-errors \
267268
"$url/?database=$database&query=EXISTS%20TABLE%20playback_events" || true
268269
)"
269270
if [[ "$exists" == "1" ]]; then

0 commit comments

Comments
 (0)