Skip to content

Conversation

@xinhaoz
Copy link
Member

@xinhaoz xinhaoz commented Jan 29, 2026

manifest: add NextFile functions to ScanCursor

Add NextFile function to ScanCursor, which returns the first file after the
cursor position.

db: add span policy enforcer background goroutine

Add a background span policy enforcer that scans the LSM to detect files
violating compression policies and marks them for policy enforcement compaction
(a new compaction type that will be introduced in a later commit).

Currently disabled by default, this initial implementation scans at a rate of
1 file per second, and checks only for a violation on the compression settings
in the span policy.

Part of: #5657

Add NextFile function to ScanCursor, which returns the first file after the
cursor position.
Add a background span policy enforcer that scans the LSM to detect files
violating compression policies and marks them for policy enforcement compaction
(a new compaction type that will be introduced in a later commit).

Currently disabled by default, this initial implementation scans at a rate of
1 file per second, and checks only for a violation on the compression settings
in the span policy.

Part of: cockroachdb#5657
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@xinhaoz xinhaoz changed the title manifest: add NextFile functions to ScanCursor db: add span policy enforcer background goroutine Jan 29, 2026
@xinhaoz xinhaoz marked this pull request as ready for review January 29, 2026 19:06
@xinhaoz xinhaoz requested a review from a team as a code owner January 29, 2026 19:06
@xinhaoz xinhaoz requested a review from annrpom January 29, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants