cockroachdb / cockroachdb/cockroach

storage,kv: calculate approximate MVCC stats during compactions

Open
#121,066 0 comments 0 reactions 0 assignees View on GitHub
A-storage C-enhancement T-storage
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

Today, write operations calculate exact deltas to MVCC stats, requiring always reading before writing. This is an obstacle to providing availability during transient failure of physical storage (cockroachdb/pebble#3230). It also reduces write-path performance. The need to maintain exact stats across MVCC GC is also an obstacle to compaction-time MVCC garbage collection. cockroachdb/cockroach#57260.

Alternatively, we could estimate MVCC stats during compactions and rely on those estimates.

TODO: complete

https://docs.google.com/document/d/1fCRO3UJjQ-_nfyfPp0pdMvATqJ4oT1LnZYhPy92DPZg/edit#heading=h.n38grdlapoea

Jira issue: CRDB-37054

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.