Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v23.3.x] cloud_storage: Improve stale_reader test #16894

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #16853
Fixes: #16893,

The test failed ocasionally when the test suite generated replacement
segments with the same size as original. The test replaced segments 1:1.
30 segments were replaced with 30 new randomly generated segments. This
caused the test to fail ocasionally when the size of the replacment
matced the size of the original segment.

This commit fixes that by replacing and merging segments. Every two old
segments are replaced with one new. The manifest allows replacement
segments to have any size if they are replacing more than one segment so
the test can no longer fail this way.

(cherry picked from commit 52628d1)
@vbotbuildovich vbotbuildovich added this to the v23.3.x-next milestone Mar 5, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Mar 5, 2024
@piyushredpanda
Copy link
Contributor

Failure: #13278 13278

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.

4 participants