-
Notifications
You must be signed in to change notification settings - Fork 4.1k
kv: establish new read snapshot on statement boundaries under RC #100133
Copy link
Copy link
Closed
Labels
A-kv-clientRelating to the KV client and the KV interface.Relating to the KV client and the KV interface.A-kv-transactionsRelating to MVCC and the transactional model.Relating to MVCC and the transactional model.A-read-committedRelated to the introduction of Read CommittedRelated to the introduction of Read CommittedC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)P-0Issues/test failures with a fix SLA of 2 weeksIssues/test failures with a fix SLA of 2 weeksT-kvKV TeamKV Team
Description
With the introduction of the read committed isolation level, transactions running under the isolation level will establish a new read snapshot on each statement boundary. This should live in Txn.Step/TxnCoordSender.Step.
cockroach/pkg/kv/kvserver/concurrency/isolation/levels.proto
Lines 93 to 95 in f9ac216
| // Read Snapshot Scope: Does the isolation level allow transactions to operate | |
| // across multiple read snapshots? If not, a single read snapshot is used for | |
| // the entire transaction. If so, what is the scope of each read snapshot? |
Jira issue: CRDB-26578
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-kv-clientRelating to the KV client and the KV interface.Relating to the KV client and the KV interface.A-kv-transactionsRelating to MVCC and the transactional model.Relating to MVCC and the transactional model.A-read-committedRelated to the introduction of Read CommittedRelated to the introduction of Read CommittedC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)P-0Issues/test failures with a fix SLA of 2 weeksIssues/test failures with a fix SLA of 2 weeksT-kvKV TeamKV Team