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

[v24.1.x] cst/ducktape: Change assertion for deleted chunks #21434

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #21427
Fixes: #21433,

Because chunk readers keep open the handle to a chunk file even if the
file itself is deleted, during the test_read_chunks it is possible that
the sequential consumer is entirely served by these open file handles
while all chunk files in the directory have been removed. This results
in the assertion that some chunks must have been removed during
sequential consumer to fail.

As the count of chunks deleted is not important as an assertion and the
purpose of deleting chunks randomly was to exercise failed
materialization code path which should happen during the random consumer
run, the assertion is changed to only test once for both seq and random
consumers.

Another alternative would be a more fine grained check, eg assert if
some chunks are removed only if some files are written to the cache
during a consumer run, but such checks do not buy extra value.

(cherry picked from commit 866675e)
@vbotbuildovich vbotbuildovich added this to the v24.1.x-next milestone Jul 16, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jul 16, 2024
@vbotbuildovich vbotbuildovich requested a review from abhijat July 16, 2024 19:40
@abhijat
Copy link
Contributor

abhijat commented Jul 17, 2024

/ci-repeat

@piyushredpanda piyushredpanda merged commit 5473a8d into redpanda-data:v24.1.x Jul 18, 2024
14 of 17 checks passed
@BenPope BenPope modified the milestones: v24.1.x-next, v24.1.11 Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants