Related to ensuring we're reliable, add CI tests with varying sizes, configurations... maybe some fuzz tests, property based...
Find way to add tests with known inaccurate filter, making sure we truly cleanup. Even if just starting with looking at logs, prove that we handle filter inaccuracy properly.
Think about impact of GC, corruption, cache purging, etc. Needs to be resillient and just work. Include forced GC in tests, and other failure states.
In general, think about all the various edge cases and ensure we test each one of them. Give those test cases names for easy descriptions of what we need to test. Also, fuzz testing or property based testing seems wise, at least in CI.
Related to ensuring we're reliable, add CI tests with varying sizes, configurations... maybe some fuzz tests, property based...
ETA: 2023-10-31