Skip to content

Introducing FilterReferencedSnapshots helper function#720

Closed
dhananjaykrutika wants to merge 1 commit intoapache:mainfrom
dhananjaykrutika:omit-referenced-snapshots
Closed

Introducing FilterReferencedSnapshots helper function#720
dhananjaykrutika wants to merge 1 commit intoapache:mainfrom
dhananjaykrutika:omit-referenced-snapshots

Conversation

@dhananjaykrutika
Copy link
Contributor

Add FilterReferencedSnapshots() to allow catalog implementations to filter out referenced snapshot IDs from RemoveSnapshots updates before applying them during commit. This closes a race window between snapshot expiration and concurrent client commits that add refs to snapshots targeted for expiration.

The filter accounts for RemoveSnapshotRef updates in the same batch, so normal expiration flows (remove ref + remove snapshot) are unaffected.

Add FilterReferencedSnapshots() to allow catalog implementations to
filter out referenced snapshot IDs from RemoveSnapshots updates before
applying them during commit. This closes a race window between snapshot
expiration and concurrent client commits that add refs to snapshots
targeted for expiration.

The filter accounts for RemoveSnapshotRef updates in the same batch,
so normal expiration flows (remove ref + remove snapshot) are unaffected.
@dhananjaykrutika
Copy link
Contributor Author

Abandoning in favor of #722

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.

1 participant