Open stevvooe opened 7 years ago
Should queues be able to drop the held messages when stopped if configured to do so? I mean, use an additional parameter that instructs the queues to drop their messages either instantly or after some time when they are closed so that the next sink in the pipeline can be closed in a "time-deterministic" fashion.
If you have a
Queue
writing to aChannel
and call close on theQueue
,Queue.Close
will block on writing toChannel.Write
. This is because theClose
waits on the shutdown condition of theQueue
.Please see https://github.com/containerd/containerd/pull/1254 for the mitigation for this.