]> source.dussan.org Git - gitea.git/commit
Prevent deadlocks in persistable channel pause test (#18410)
authorzeripath <art27@cantab.net>
Tue, 25 Jan 2022 23:09:57 +0000 (23:09 +0000)
committerGitHub <noreply@github.com>
Tue, 25 Jan 2022 23:09:57 +0000 (01:09 +0200)
commit713985b1a4c5d2faf997b5e96885e9d1a31250db
treeb62a624b1ca1e6ee7345a8c35ac56132804d797f
parentb53fd5ff9006af9d35e8de727f8ebbbb4bb30806
Prevent deadlocks in persistable channel pause test (#18410)

* Prevent deadlocks in persistable channel pause test

Because of reuse of the old paused/resumed channels in this test there
was a potential for deadlock. This PR ensures that the channels are always
reobtained.

It further adds some control code to detect hangs in future - and it
ensures that the pausing warning is not shown on shutdown.

Signed-off-by: Andrew Thornton <art27@cantab.net>
* do not warn but do pause

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/queue/queue_disk_channel_test.go
modules/queue/workerpool.go