Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
38532: storage: deflake TestReplicaRefreshPendingCommandsTicks r=tbg a=nvanbenschoten Fixes #38525. The test was occasionally failing because the proposals map was being refreshed due to a `reasonNewLeaderOrConfigChange`. This was caused by 1ff3556, which replaced `submitProposalFn` with `proposalBuf.testing.submitProposalFilter`. The new approach to mocking out this function doesn't prevent a Raft ready iteration from being scheduled, so `handleRaftReady` was being called and noticing the leadership change, resulting in the refresh. I've stressed this for 200,000 iterations without a failure. Co-authored-by: Nathan VanBenschoten <[email protected]>
- Loading branch information