You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
152025: logictest: add retry before all ALTER TABLE EXPERIMENTAL_RELOCATE r=yuzefovich,mw5h a=michae2
In #139839 we added retries before various `ALTER TABLE EXPERIMENTAL_RELOCATE` statements. We're still seeing some failures, so add retries to more `ALTER TABLE EXPERIMENTAL_RELOCATE` statements.
The following command was used to add the retries (via ChatGPT 5):
```bash
git ls-files -z pkg/sql/logictest/testdata/logic_test/ pkg/sql/opt/exec/execbuilder/testdata/ pkg/ccl/logictestccl/testdata/logic_test/ \
| while IFS= read -r -d '' f; do
awk '
BEGIN { seen_retry=0; have_pending=0; last_stmt_retry=0; bcount=0 }
/retry/ { seen_retry=1 }
/statement ok/ {
if (have_pending) { for (i=1;i<=bcount;i++) print buf[i] }
have_pending=1; bcount=0; last_stmt_retry=seen_retry; buf[++bcount]=$0; next
}
have_pending {
buf[++bcount]=$0
if ($0 ~ /ALTER TABLE .* EXPERIMENTAL_RELOCATE/) {
if (last_stmt_retry==0) print "retry"
for (i=1;i<=bcount;i++) print buf[i]
have_pending=0; bcount=0
}
next
}
{ print }
END { if (have_pending) for (i=1;i<=bcount;i++) print buf[i] }
' "$f" > "$f.tmp" && mv "$f.tmp" "$f"
done
```
Fixes: #151855
Release note: None
Co-authored-by: Michael Erickson <[email protected]>
0 commit comments