noCV
CKV-108 · Reclaim old storage

Compact the local log without changing visible key values

Practice briefTaskAdvanced

Repeated updates grow the log. Write a compacted generation from one consistent logical view.

Focused work estimate
3h 30m + prerequisites
Priority in the scenario
High
Engineering practice
Compaction · Data integrity

Estimated field mix

  • Storage systems50%
  • Database engineering30%
  • Performance engineering20%

Field percentages are editorial estimates of the ticket's engineering focus. They total 100%; they are not measured time, proficiency scores, or ownership evidence.

Your next step

Review it, then add it to your workspace.

The board opens an editable draft; nothing is saved until you confirm it. Sign-in and workspace permissions apply, and Demo boards remain ephemeral.

Project context

Fictional desktop cache Pebble needs a small embedded key-value engine. Build against generated keys and bytes using an ordinary filesystem adapter; no production database replacement is implied.

Setup prerequisites

  • Create a disposable local fixture directory.
  • Implement fault injection for partial writes, sync failure and process restart.

Preceding work

Complete these dependencies, or supply their agreed outputs before taking this ticket.

Acceptance criteria

  • Latest live values survive
  • Deleted keys stay absent
  • Compaction output validates before activation

Implementation constraints

  • Bound memory by documented fixture limits or streaming plan.

Verification to include

  • Compare reads before and after
  • Inject corrupted output record

Deliverables

  • Compaction writer and equivalence cases

Rollout and recovery

Discard unactivated compacted generation on failure.

Value of the work

For the engineer: Practice storage formats, durability boundaries and corruption handling.

For the team: Inspect whether an engineer can state and test persistence guarantees.

Evidence boundaries

Outcome Evidence: Tests, patches, and runbooks are requested deliverables. They become Outcome Evidence only through a qualified Mission and immutable Evidence IDs.

Ownership Evidence: Independent adaptation must be observed under a declared verification policy and cite immutable Evidence IDs. Completing a planning ticket establishes no Ownership Evidence.