forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
134653: kvserver: deflake TestLeaseQueueLeasePreferencePurgatoryError r=tbg a=tbg The test sets up an environment in which 40 replicas of interest are supposed to enter the lease queue purgatory. The test was waiting for this to happen before proceeding, but was doing so incorrectly: It checked that the number of replicas in the purgatory matches 40 (as opposed to checking directly that all ranges of interest had entered it). Since other ranges could slip in, occasionally the test would proceed too early, remove the condition that causes ranges to enter the purgatory, and then find that a few ranges would not be processed (since they never entered the purgatory in the first place). This commit fixes this by waiting explicitly for the RangeIDs of interest to be represented in the lease queue purgatory. I was able to reproduce the flake in a few minutes on my gceworker via ``` ./dev test --count 10000 --stress ./pkg/kv/kvserver \ --filter TestLeaseQueueLeasePreferencePurgatoryError -- \ --jobs 100 --local_resources=cpu=100 --local_resources=memory=HOST_RAM 2>&1 ``` This no longer reproduces as of this PR: ``` INFO: Elapsed time: 2091.413s, Critical Path: 166.06s INFO: 3356 processes: 2 internal, 3354 linux-sandbox. INFO: Build completed successfully, 3356 total actions INFO: //pkg/kv/kvserver:kvserver_test PASSED in 50.3s Stats over 3000 runs: max = 50.3s, min = 12.3s, avg = 26.6s, dev = 6.6s ``` Fixes cockroachdb#134578. Fixes cockroachdb#134768. The backports will fix but this Touches cockroachdb#134765. Epic: none Release note: None 134744: authserver: fix "use of Span after Finish." in v2 auth r=kyle-a-wong a=kyle-a-wong fixes a bug where GET api/v2/login results in the error: `use of Span after Finish`. This was happening due to the endpoint re-using the context that is stored in `authenticationV2Server`. This has been updated to use the request context instead and the context field of `authenticationV2Server` has been removed, Fixes: cockroachdb#133493 Epic: none Release note: None Co-authored-by: Tobias Grieger <[email protected]> Co-authored-by: Kyle Wong <[email protected]>
- Loading branch information
Showing
4 changed files
with
49 additions
and
22 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