diff --git a/util/gpool/spmc/spmcpool.go b/util/gpool/spmc/spmcpool.go index d1a3bbb80c4aa..8afdf9db0c253 100644 --- a/util/gpool/spmc/spmcpool.go +++ b/util/gpool/spmc/spmcpool.go @@ -249,6 +249,7 @@ func (p *Pool[T, U, C, CT, TF]) ReleaseAndWait() { if p.Running() == 0 && p.heartbeatDone.Load() && p.waitingTask.Load() == 0 { return } + time.Sleep(5 * time.Millisecond) } }