Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kv: change TxnCoordSender so that many can be used in a distributed f…
…ashion The key idea here is to stop using a single TxnCoordSender but instead provide a factory for stateful instances of TxnCoordSender to be used with each client.DB transaction. The state stored by the TxnCoordSender can be fetched, collected, passed, and then used to augment a parent or sibling TxnCoordSender. This allows DistSQL to use the TxnCoordSender just like normal SQL and paves the way for mutating distributed SQL transactions. With this change, we get the added benefit of observed timestamps being correct returned to the root transaction through distributed sql flows, which should prevent unnecessary restarts from uncertainty interval errors. Fixes cockroachdb#10511 Fixes cockroachdb#13376 Release note (dist sql): Removes the limitation that distributed SQL is not used once a transaction has had writes.
- Loading branch information