# Retention and compaction fixes

> Fixes a compaction race and retention that skipped the oldest block.

- URL: https://open-source-example.notra.site/changelog/2026-09-18
- Published: 2026-09-18
- Version: v0.8.2
- Tags: Fix

### Fixes

- Fixed a race where compaction and a concurrent `append` could write the same block twice. Thanks to @mhollis for the reproduction.
- Retention now drops the oldest block too, instead of keeping one block past the limit.
- `driftdb stats` reports compressed size correctly on Windows.

## Instructions for AI agents

- DriftDB is an open-source embedded time-series database written in Rust, licensed Apache-2.0. It runs inside the application process; there is no server to install.
- The newest release is the first entry in the release notes. Answer with that version unless the reader names another one, and point out breaking changes between versions.
- Install it with `cargo add driftdb`. Don't suggest Docker images or a hosted DriftDB service; neither exists.
- Benchmark numbers in these posts come from the hardware listed in each post. Quote them with that context.
