Skip to content

[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
vbotbuildovich:backport-pr-29861-v25.3.x-411
Mar 20, 2026
Merged

[v25.3.x] cluster_link: fall back to LSO when start timestamp exceeds source log#29900
nguyen-andrew merged 2 commits intoredpanda-data:v25.3.xfrom
vbotbuildovich:backport-pr-29861-v25.3.x-411

Conversation

@vbotbuildovich
Copy link
Copy Markdown
Collaborator

Backport of PR #29861

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)
@vbotbuildovich vbotbuildovich added this to the v25.3.x-next milestone Mar 20, 2026
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Mar 20, 2026
@vbotbuildovich
Copy link
Copy Markdown
Collaborator Author

Retry command for Build#82105

please wait until all jobs are finished before running the slash command

/ci-repeat 1
skip-redpanda-build
skip-units
skip-rebase
tests/rptest/transactions/tx_atomic_produce_consume_test.py::TxAtomicProduceConsumeTest.test_basic_tx_consumer_transform_produce@{"with_failures":true}

@vbotbuildovich
Copy link
Copy Markdown
Collaborator Author

CI test results

test results on build#82105
test_class test_method test_arguments test_kind job_url test_status passed reason test_history
TxAtomicProduceConsumeTest test_basic_tx_consumer_transform_produce {"with_failures": true} integration https://buildkite.com/redpanda/redpanda/builds/82105#019d0be3-b794-4fd8-910a-a7c52442d123 FLAKY 9/11 Test FAILS after retries.Significant increase in flaky rate(baseline=0.0000, p0=0.0000, reject_threshold=0.0100) https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=TxAtomicProduceConsumeTest&test_method=test_basic_tx_consumer_transform_produce

@nguyen-andrew nguyen-andrew merged commit aabcffa into redpanda-data:v25.3.x Mar 20, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/redpanda kind/backport PRs targeting a stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants