forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
logictest: retry support for "statement" and "query" commands
This adds a retry command to logic tests which may be issued on a separate line preceding either a "statement" or "query" command. It causes the statement to be retried with exponential backoff up to some maximum duration, e.g. ``` retry statement error column "non_exist" does not exist ALTER TABLE created_as_global SET LOCALITY REGIONAL BY ROW AS "non_exist" ``` This has the same effect as the retry option of the query command, but now also supports "statement ok", "statement error" and "query error" commands. Retry of a query command may be specified by the standalone retry command, the retry option of the query command, or both. Fixes: cockroachdb#95668 Epic: CRDB-20535 Release note: None
- Loading branch information
Mark Sirek
committed
Jun 29, 2023
1 parent
59d8113
commit a2d9f99
Showing
1 changed file
with
36 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters