Commit Graph

7 Commits

Author SHA1 Message Date
Jingyu Zhou 0872cbfb2f
Fix a test timeout (#8488)
* Fix a test timeout due to buggified knob MAX_WRITE_TRANSACTION_LIFE_VERSIONS

The buggified knob MAX_WRITE_TRANSACTION_LIFE_VERSIONS can be only 1M. In some
tests, this transaction always end up commitVersion - readVersion is a little
above 1M, thus always getting transaction_too_old error.

* Change MAX_COMMIT_BATCH_INTERVAL instead

So that the master may give out versions fast enough.

* Fix an assertion failure in a unit test

48125>>8 = 187, 48125 = 0xbbfd
48128>>8 = 188, 48128 = 0xbc00
So if 48125 is chosen as the index, 48128 changes the higher order byte.

48125 & 0xff7f = 47997 = 0xbb7d. Thus +5 won't change the higher order byte.
2022-10-19 09:45:56 -07:00
Andrew Noyes 8c22b7b779 Performance improvements and benchmark tweaks 2022-10-12 13:53:11 -07:00
Andrew Noyes 53f79dd769 Attempt to fix windows build 2022-10-11 13:46:40 -07:00
Andrew Noyes f48d0d929b Assign to idempotency id through transaction options 2022-10-11 13:46:39 -07:00
Andrew Noyes d8fce2525d IdempotencyId -> IdempotencyIdRef 2022-10-11 13:46:39 -07:00
Andrew Noyes 6d1707a8b8 Write and inspect key value format 2022-10-11 13:46:39 -07:00
Andrew Noyes 329a2724ff Add IdempotencyId struct 2022-10-11 13:46:39 -07:00