Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
113658: kvserver: fix reproposals test with pipelined writes r=erikgrinaker a=pavelkalinnikov Before this commit, the test was a no-op reporting 0 metrics. This is due to `isOurCommand` function which assumed that the key increment request is always the first request in `BatchRequest`. With pipelined writes, this is not true. A typical request is: > QueryIntent ["00001-testing",/Min), Increment ["00001-testing",/Min) In this commit, `isOutCommand` scans the `BatchRequest` to find the command. Before: ``` observed 0 async write restarts, observed 0/0 injected aborts, 0 injected illegal lease applied indexes commands reproposed (unchanged): 1 commands reproposed (new LAI): 0 ``` After: ``` observed 69 async write restarts, observed 0/69 injected aborts, 366 injected illegal lease applied indexes commands reproposed (unchanged): 1 commands reproposed (new LAI): 297 ``` Fixes #106504 Touches #110551 Epic: none Release note: none Co-authored-by: Pavel Kalinnikov <pavel@cockroachlabs.com>
- Loading branch information