forked from yugabyte/yugabyte-db
-
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.
[BACKPORT 2024.1][yugabyte#21361] YSQL: Block query layer retries for…
… multi-statement queries Summary: Query layer retries should be blocked for multi-statement queries. This is because they might have transaction blocks within them that had committed before a statement faces a kConflict, and a query layer retry would redo the whole query and hence the transaction block too, which might not be idempotent. Something like the below where the second update faces a kConflict: "begin ... repeatable read; update ...; commit; update ...;" This diff also does cosmetic changes to log messages related to query layer retries and error messages that are sent back to the external client. Jira: DB-10258 Original commit: b72433e / D33860 Test Plan: Jenkins Added yb_query_layer_retries_for_a_multi_statement_query to the yb_pg_isolation_schedule Reviewers: tfoucher, patnaik.balivada Reviewed By: patnaik.balivada Subscribers: yql Tags: #jenkins-ready Differential Revision: https://phorge.dev.yugabyte.com/D34633
- Loading branch information
Showing
15 changed files
with
258 additions
and
185 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
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
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
Oops, something went wrong.