Skip to content

[v26.1.x] tests/rm_stm: wait for STM replay before LSO check after restart#30992

Open
vbotbuildovich wants to merge 1 commit into
redpanda-data:v26.1.xfrom
vbotbuildovich:backport-pr-30369-v26.1.x-48
Open

[v26.1.x] tests/rm_stm: wait for STM replay before LSO check after restart#30992
vbotbuildovich wants to merge 1 commit into
redpanda-data:v26.1.xfrom
vbotbuildovich:backport-pr-30369-v26.1.x-48

Conversation

@vbotbuildovich

Copy link
Copy Markdown
Collaborator

Backport of PR #30369

After restart_stm_and_raft() the STM has only applied through the
snapshot offset; data batches are still asynchronously replaying, so
last_stable_offset() can briefly return invalid_lso. Wrap the check in
RPTEST_REQUIRE_EVENTUALLY, mirroring the wait already used at the end of
the test.

(cherry picked from commit fb111f1)
@vbotbuildovich vbotbuildovich added this to the v26.1.x-next milestone Jul 1, 2026
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jul 1, 2026
@vbotbuildovich vbotbuildovich requested a review from ballard26 July 1, 2026 18:03
@vbotbuildovich

Copy link
Copy Markdown
Collaborator Author

CI test results

test results on build#86614
test_status test_class test_method test_arguments test_kind job_url passed reason test_history
FLAKY(PASS) SIPartitionMovementTest test_cross_shard {"cloud_storage_type": 1, "num_to_upgrade": 0, "with_cloud_topics": false} integration https://buildkite.com/redpanda/redpanda/builds/86614#019f1ee4-29e7-455a-a0c8-c7234d24b668 10/11 Test PASSES after retries.No significant increase in flaky rate(baseline=0.0000, p0=1.0000, reject_threshold=0.0100. adj_baseline=0.1000, p1=0.3487, trust_threshold=0.5000) https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=SIPartitionMovementTest&test_method=test_cross_shard

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