After a successful compaction, the blocks in the cache are obsolete. This purges the cache of old blocks which helps to clarify memory usage patterns (memory usage should no longer grow over time).
Test plan
How are these changes tested?
Tested by profiling memory usage and confirming that usage did not grow after subsequent compactions.
Documentation Changes
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?
Description of changes
After a successful compaction, the blocks in the cache are obsolete. This purges the cache of old blocks which helps to clarify memory usage patterns (memory usage should no longer grow over time).
Test plan
How are these changes tested?
Tested by profiling memory usage and confirming that usage did not grow after subsequent compactions.
Documentation Changes
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?
n/a