IP GC scan all running unhealthy #1882
Labels
kind/bug
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Describe the version
version about:
v0.5.0 and upper
Describe the bug
The IP GC scan all not works
How To Reproduce
Steps to reproduce the issue:
Additional context
Reference PR: #1661
In this PR, I triggered IP-GC scan all once the spiderpool-controller gets the leader.
But I missed one thing, the
startPodInformer
andmonitorGCSignal
run in goroutines.So the
startPodInformer
function may run faster and it send a signal tos.gcSignal
. What's more, the buffer ofs.gcSignal
is one, and if function 'monitorGCSignal' runs later and it also wanna send a signal tos.gcSignal
and it will block.spiderpool/pkg/gcmanager/pod_informer.go
Line 74 in 000e7ce
spiderpool/pkg/gcmanager/scanAll_IPPool.go
Lines 32 to 33 in 000e7ce
The text was updated successfully, but these errors were encountered: