mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #59574 from shyamjvs/fix-scale-tests-profiling-bug
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Fix bug with profile-gathering waitgroup in scale tests This bug has caused panic due to: ``` I0208 14:11:52.955] [91m[1mTest Panicked[0m I0208 14:11:52.955] [91msync: negative WaitGroup counter[0m ``` e.g failure - https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-kubemark-500-gce/11818) /cc @wojtek-t ```release-note NONE ```
This commit is contained in:
commit
7f145e0a57
@ -363,6 +363,7 @@ var _ = SIGDescribe("Density", func() {
|
||||
// Stop apiserver CPU profile gatherer and gather memory allocations profile.
|
||||
close(profileGathererStopCh)
|
||||
wg := sync.WaitGroup{}
|
||||
wg.Add(1)
|
||||
framework.GatherApiserverMemoryProfile(&wg, "density")
|
||||
wg.Wait()
|
||||
|
||||
|
@ -104,6 +104,7 @@ var _ = SIGDescribe("Load capacity", func() {
|
||||
// Stop apiserver CPU profile gatherer and gather memory allocations profile.
|
||||
close(profileGathererStopCh)
|
||||
wg := sync.WaitGroup{}
|
||||
wg.Add(1)
|
||||
framework.GatherApiserverMemoryProfile(&wg, "load")
|
||||
wg.Wait()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user