unit-state.db grows apparently without bound
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PostgreSQL Charm |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
Ubuntu 20.04, charm version 206.
After running for a while, unit-state.db grows quite big - mine was 50MB when I noticed. This is all in the "reactive.
This is leading to longer and longer hook duration, from :
2020-07-23 01:49:59 unit-postgresql-2: uniter (run update-status hook), waited 0s, held 4m0s
to
2020-08-12 14:22:08 unit-postgresql-2: uniter (run update-status hook), waited 0s, held 23m34s
(full report at https:/
23 minutes to run update-status just doesn't work.
I had to clean up reactive.
$ cd /var/lib/
$ sudo sqlite3 .unit-state.db
sqlite> UPDATE kv SET data='{"iteration": 0, "changes": [], "pending": []}' WHERE key='reactive.
sqlite> VACUUM;
Thanks
This is all charms.reactive internals. Is it a charms.reactive issue?