Skip to content

Conversation

@kev-cao
Copy link
Contributor

@kev-cao kev-cao commented Dec 24, 2025

Previously, empty incremental backups would not set revision start time in the backup manifest. This commit fixes the backup processor to still set the revision start time when writing no data.

Epic: None

Release note: None

Previously, empty incremental backups would not set revision start time
in the backup manifest. This commit fixes the backup processor to still
set the revision start time when writing no data.

Epic: None

Release note: None
@kev-cao kev-cao requested a review from a team as a code owner December 24, 2025 20:05
@kev-cao kev-cao requested review from Copilot and dt and removed request for a team December 24, 2025 20:05
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes empty incremental backups with revision history to properly set the revision start time in the backup manifest. Previously, when an incremental backup exported no data, the revision start time field was not populated even for revision history backups.

  • Sets revStart timestamp for empty spans when MVCCFilter_All is used (revision history backups)
  • Ensures flushedRevStart is forwarded in WriteWithNoData method and included in progress updates
  • Adds proper cleanup with flushedRevStart.Reset() after flushing

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
pkg/backup/backup_processor.go Conditionally sets revStart timestamp for empty export responses when using revision history (MVCCFilter_All)
pkg/backup/backupsink/file_sst_sink.go Updates WriteWithNoData to track revision start time and ensures it's included in progress updates during flush
pkg/backup/backup_test.go Adds comprehensive test coverage for both revision history and non-revision history empty incremental backups

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kev-cao
Copy link
Contributor Author

kev-cao commented Jan 2, 2026

TFTR!

bors r=msbutler

@craig
Copy link
Contributor

craig bot commented Jan 2, 2026

@craig craig bot merged commit e97bac2 into cockroachdb:master Jan 2, 2026
29 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants