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

cloud_storage/ducktape: Ensure segments are compactible #12010

Conversation

abhijat
Copy link
Contributor

@abhijat abhijat commented Jul 11, 2023

In stress test when asserting that some number of compacted segments have been uploaded, this change sets a fixed cardinality for keys so that the segments are always compactible.

This is necessary because during compacted segment reupload we do not reupload unless the segment size has decreased.

This check can end up in preventing upload of compacted segments to the cloud, until all uploaded compacted segments fall off the end of the manifest and we are left with no compacted segments in the manifest, failing the test assertions.

FIXES #10836

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.1.x
  • v22.3.x
  • v22.2.x

Release Notes

  • none

In stress test when asserting that some number of compacted segments
have been uploaded, this change sets a fixed cardinality for keys so
that the segments are always compactible.

This is necessary because during compacted segment reupload we do not
reupload unless the segment size has decreased.

This check can end up in preventing upload of compacted segments to the
cloud, until all uploaded compacted segments fall off the end of the
manifest and we are left with no compacted segments in the manifest,
failing the test assertions.
@abhijat abhijat marked this pull request as ready for review July 11, 2023 08:24
@abhijat abhijat requested review from andijcr and VladLazar July 11, 2023 08:25
@abhijat
Copy link
Contributor Author

abhijat commented Jul 11, 2023

three unrelated issues:

#11362
#7021
#11698

@jcsp jcsp merged commit d28a4bd into redpanda-data:dev Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants