roadrunner
roadrunner copied to clipboard
[🐛 BUG]: BoltDB driver is broken after RR stops
No duplicates 🥲.
- [X] I have searched for a similar issue in our bug tracker and didn't find any solutions.
What happened?
A bug happened!
Stopping the RR while processing a task can lead to BoltDB driver failure. Tasks will be lost and the ACTIVE column will contain negative values.
Version (rr --version)
rr version 2024.1.2 (build time: 2024-05-16T19:48:53+0000, go1.22.3), OS: linux, arch: amd64
How to reproduce the issue?
Check README.md file.
https://github.com/Kaspiman/roadrunner-problem-demo/tree/boltdb-problem
Relevant log output
/var/www/html # rr workers -c rr.yaml
Workers of [jobs]:
+---------+-----------+---------+---------+---------+--------------------+
| PID | STATUS | EXECS | MEMORY | CPU% | CREATED |
+---------+-----------+---------+---------+---------+--------------------+
| 1226 | ready | 0 | 16 MB | 0.15 | 11 seconds ago |
| 1227 | ready | 1 | 17 MB | 0.15 | 11 seconds ago |
| 1228 | ready | 1 | 16 MB | 0.15 | 11 seconds ago |
| 1229 | ready | 1 | 17 MB | 0.08 | 11 seconds ago |
+---------+-----------+---------+---------+---------+--------------------+
Jobs of [jobs]:
+--------+----------+--------+-------+--------+---------+----------+
| STATUS | PIPELINE | DRIVER | QUEUE | ACTIVE | DELAYED | RESERVED |
+--------+----------+--------+-------+--------+---------+----------+
| READY | boltdb | boltdb | push | -1 | 0 | 0 |
+--------+----------+--------+-------+--------+---------+----------+