3 ms·
How do you break dependency cycles across shards (i.e. deadlock detection)?
by grogers 4y ago
How do you break dependency cycles across shards (i.e. deadlock detection)?
- _benedict 4y agoThere aren’t any dependency cycles, as dependencies must take a strictly lower logical timestamp. Dependency resolution is essentially two step: first every transaction that MIGHT take a lower timestamp is adopted as a dependency, then once those transactions have fixed their timestamp those that take a higher timestamp are simply removed from the dependency set. Once we offer interactive transactions we’ll have to detect cycles, but that should be relatively straightforward since execution dependencies are managed explicitly.