pool icon indicating copy to clipboard operation
pool copied to clipboard

fix deadlock when batch canceled, some workUnit's done channel can't be closed

Open vvnotw opened this issue 5 years ago • 0 comments

It happend in this situation:

  1. call Batch.Cancel()
  2. wu.cancelling is set in cancelWithError()
  3. wu.writing is set in Queue() now, wu.done is never closed, batch will wait forever

vvnotw avatar Sep 12 '19 09:09 vvnotw