[v25.3.x] cluster_link: fall back to LSO when start timestamp exceeds source log#29900
Merged
nguyen-andrew merged 2 commits intoredpanda-data:v25.3.xfrom Mar 20, 2026
Conversation
When a shadow link is configured with a start_at_timestamp past the end of the source partition's log, ListOffsets returns offset -1 with no error. Previously this value was used as-is, causing replication to start from offset 0 and copy the entire log. Extract the ListOffsets RPC dispatch into a dedicated dispatch_list_offsets helper so it can be reused, then add a check in fetch_offset_for_timestamp: when the returned offset is negative, issue a second ListOffsets request with latest_timestamp (which, under our read_committed isolation level, returns the LSO) so replication begins only at new committed data. (cherry picked from commit bffd156)
Exercises the fix that falls back to LSO when ListOffsets returns -1. Verifies that historical data is not replicated and only new records appear. (cherry picked from commit 8ffe553)
Collaborator
Author
Retry command for Build#82105please wait until all jobs are finished before running the slash command |
Collaborator
Author
CI test resultstest results on build#82105
|
nguyen-andrew
approved these changes
Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of PR #29861