You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules/queue
Giteabot 13f304d89e
Properly flush unique queues on startup (#23154) (#23200)
Backport #23154

There have been a number of reports of PRs being blocked whilst being
checked which have been difficult to debug. In investigating #23050 I
have realised that whilst the Warn there is somewhat of a miscall there
was a real bug in the way that the LevelUniqueQueue was being restored
on start-up of the PersistableChannelUniqueQueue.

Next there is a conflict in the setting of the internal leveldb queue
name - This wasn't being set so it was being overridden by other unique
queues.

This PR fixes these bugs and adds a testcase.

Thanks to @brechtvl  for noticing the second issue.

Fix #23050
and others

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: delvh <leon@kske.dev>
2 years ago
..
bytefifo.go Pause queues (#15928) 3 years ago
helper.go Add more linters to improve code readability (#19989) 3 years ago
manager.go Add number in queue status to monitor page (#18712) 3 years ago
queue.go Make WrappedQueues and PersistableChannelUniqueQueues Pausable (#18393) 3 years ago
queue_bytefifo.go Add more linters to improve code readability (#19989) 3 years ago
queue_channel.go Properly flush unique queues on startup (#23154) (#23200) 2 years ago
queue_channel_test.go Prevent intermittent NPE in queue tests (#19301) 3 years ago
queue_disk.go Pause queues (#15928) 3 years ago
queue_disk_channel.go Properly flush unique queues on startup (#23154) (#23200) 2 years ago
queue_disk_channel_test.go Properly flush unique queues on startup (#23154) (#23200) 2 years ago
queue_disk_test.go test: use `T.TempDir` to create temporary test directory (#21043) 3 years ago
queue_redis.go Pause queues (#15928) 3 years ago
queue_test.go Add an abstract json layout to make it's easier to change json library (#16528) 4 years ago
queue_wrapped.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
setting.go Make WrappedQueues and PersistableChannelUniqueQueues Pausable (#18393) 3 years ago
unique_queue.go Add Unique Queue infrastructure and move TestPullRequests to this (#9856) 5 years ago
unique_queue_channel.go Properly flush unique queues on startup (#23154) (#23200) 2 years ago
unique_queue_channel_test.go Properly flush unique queues on startup (#23154) (#23200) 2 years ago
unique_queue_disk.go Pause queues (#15928) 3 years ago
unique_queue_disk_channel.go Properly flush unique queues on startup (#23154) (#23200) 2 years ago
unique_queue_disk_channel_test.go Properly flush unique queues on startup (#23154) (#23200) 2 years ago
unique_queue_redis.go Pause queues (#15928) 3 years ago
unique_queue_wrapped.go Make WrappedQueues and PersistableChannelUniqueQueues Pausable (#18393) 3 years ago
workerpool.go Correctly handle select on multiple channels in Queues (#22146) (#22428) 2 years ago