Closed zhiqiangxu closed 4 days ago
When calling StopBatchSubmitting in throttlingLoop here, it will wait on the WaitGroup here.
StopBatchSubmitting
WaitGroup
But the problem is that throttlingLoop is also in this WaitGroup(source), thus it'll deadlock.
throttlingLoop
/ci authorize 4003f674febbd6281d5687d38e0358e11b1ab567
When calling
StopBatchSubmitting
in throttlingLoop here, it will wait on theWaitGroup
here.But the problem is that
throttlingLoop
is also in thisWaitGroup
(source), thus it'll deadlock.