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.
kv: disallow parallel commit of batch with read-only requests
Fixes cockroachdb#44315. This commit fixes an issue where KV batches with read-only requests were allowed to be issued as parallel commits. This should not have been allowed because the outcome of these read-only requests, notably Get and Scan requests, is not taken into consideration by the status resolution process for STAGING transactions. This would have caused serious atomicity issues if parallel commit batches (non-1PC committing batches) were issued with read-only requests by users of the KV API. Luckily, in practice that wouldn't actually happen as we never issue batches like that so there's no concern about production clusters hitting this bug. Still, this is a very good catch as this was a serious footgun and fixing this hardens the KV API. We should also still backport this to v19.2 just to be safe. Release note: None
- Loading branch information
1 parent
7362d0c
commit ede3096
Showing
2 changed files
with
70 additions
and
15 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