-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
45102: storage,kv: don't return errors with the WriteTooOld flag set r=andreimatei a=andreimatei The span refresher interceptor is supposed to terminate the txn.WriteTooOld flag. For that, it asserts that the request doesn't not have that flag set on it; only responses should have it. There was, however, a case where terminating the flag was not happening as intended: when a non-retriable error was coming back with the WriteTooOld flag set, the flag made its way into the client's txn, slipping past the interceptor. This was causing further requests to fail the aforementioned assertion. (Since errors are at play here, the only further request should be a Rollback). This patch fixes this by having servers never return errors with this flag set. Setting this flag on an error does not make sense anyway. Touches #40786 Release note: None Co-authored-by: Andrei Matei <andrei@cockroachlabs.com>
- Loading branch information
Showing
5 changed files
with
117 additions
and
55 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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