Unverified Commit 7f145e0a authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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 ```
parents 9a3d2795 db0a3721
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment