-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added high-content benchmarks and fixed starvation bugs
The bank benchmark was never doing anything before now as there was no money in any of the accounts, so nothing would transfer. Added high-contention workloads to the benchmarks and in the process discovered starvation scenarios and an outright bug. The starvation scenario was encountered when a batch containing writes and an end transaction failed due to a serialized txn having `Timestamp` != `OrigTimestamp`. In that event, we discard the entire batch engine, meaning the intents for the writes are discarded with everything else. This change commits the results of a batch which fails with EndTransaction. There was also a bug when restarting a transaction. The replay of the `BeginTransaction` statement was incorrectly using the value of the transaction record instead of the transaction passed in with the batch request. In the event that the txn was pushed or aborted during the restart, this would cause various problems when commit time comes. The 2, 4, and 8 account benchmarks are pretty slow, but optimizing those is the next step.
- Loading branch information
1 parent
3286eee
commit e6d0a16
Showing
7 changed files
with
199 additions
and
31 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
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
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