51a00dd09968f0d3645da15710b8a72495d4714d
TRIGGER backup work while stores are in use
`TRIGGER backup` answered `ERR internal_error` in two common cases: - a KV store was open in the pool (e.g. right after a `PUSH`): the backup opened the database a second time, which RocksDB refuses as its `LOCK` file is held. The pooled store is now backed up instead, after a flush. - the KV or FST store directory did not exist yet (nothing ingested, or nothing consolidated yet): listing it failed. There is nothing to back up in that case. Also enable the `trigger_backup` test, which covers both cases. Fixes #274
Description
My contributions to valeriansaliou/sonic: 6 commits, 5 merged PRs
198 KiB
0 Stars
1 Watchers
0 Forks
Languages
Rust
100%