khonsulabs / bonsaidb

A developer-friendly document database that grows with you, written in Rust
https://bonsaidb.io/
Apache License 2.0
1.01k stars 37 forks source link

Add shutdown for Storage #163

Open ecton opened 2 years ago

ecton commented 2 years ago

In 48dac81500ca4a588b6cf1d1b609a2326f6cf7d2, I discovered that the key-value expiration loader task was interfering with reliably persisting keys. There's a TODO in the expiration_after_close test referencing the need for a way to shut down the database and wait for tasks to finish.

There are some questions to answer: