-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
129640: kvserver: deflake, fix, speed up TestTenantRateLimiter r=tbg a=tbg This test would occasionally (rarely) hang for 120s and then fail with an opaque AmbiguousResultError in case that some of the requests the test doesn't expect to block end up doing so. I'm fairly sure this test can sometimes deadlock because enough extra writes sneak in to cause the test's requests to block. Seeing how this is a tarpit test (once you start looking your work day is consumed), I addressed the following problems: - it claimed to verify metrics, but the regexp had rotted and so it wasn't verifying anything. - it ran into throttling in the client-side tenant rate limiter, so the test took 10s-15s. Now it runs in ~1s. - it also did >3k requests, so it was quite expensive. Now it does a couple hundred bigger ones, which should be a smidge cheaper. - it was flaky due to trying to make very strong claims about when requests would block, despite dozens of background requests that are hard to avoid sneaking in on every run. - it would be difficult to debug when hanging due to unexpected blocking. Now it's a somewhat weaker but still meaningful test that going forward we are paying a much smaller tax for. Should it block again the test will fail gracefully; it will still be difficult to root cause but it is also now wholly unexpected that this should ever occur. See: #129612 (comment) Fixes #129612. Release note: None Epic: None Co-authored-by: Tobias Grieger <[email protected]>
- Loading branch information
Showing
6 changed files
with
132 additions
and
49 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