-
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.
statusccl: speedup unit test by reducing concurrency
Previously, we spin up 1 host cluster and 2 tenant clusters for testing tenant status server. Each cluster contains 3 nodes and we effectively spin up 9 nodes for the test. This is very expensive and can cause errors like "race: limit on 8128 simultaneously alive goroutines is exceeded, dying" due to the underyling LLVM limitation. This commit reduces the total number of nodes that are spinned up. Host cluster and the second tenant cluster size is now reduced to 1 node to reduce the cost of the tests. Additional special `randomServerIdx` value is introduced to avoid having the test rely on the hard-coded server index. Release note: None
- Loading branch information
Showing
2 changed files
with
49 additions
and
26 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