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

storage: add LogCompactionSchedulingTest::dirty_ratio_scheduling_test ducktape test #25205

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

WillemKauf
Copy link
Contributor

@WillemKauf WillemKauf commented Feb 27, 2025

Add a new test that asserts that compaction scheduling is properly controlled by the min.cleanable.dirty.ratio topic/cluster property, and the dirty_ratio() of a log.

This also includes a commit to refactor some shared utils between LogCompactionTest and the new LogCompactionSchedulingTest into parent class LogCompactionTestBase.

Also remove a race-y assert in log_compaction_test.py: https://redpandadata.atlassian.net/browse/CORE-9059

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
  • v24.3.x
  • v24.2.x
  • v24.1.x

Release Notes

  • none

For encapsulating some generic functions that will be shared between
future log compaction ducktape classes.
This assert on `get_closed_segment_bytes()` is race-y in the parameterized
test which uses a `compact,delete` cleanup policy.

This is because it is possible for retention to kick in after waiting on
compaction, and fully remove all closed bytes in the log.

Remove this assert to de-flake the test.
This test stresses the dirty ratio, as well as the use of `min.cleanable.dirty.ratio`
for scheduling compaction.
@WillemKauf WillemKauf requested a review from dotnwat February 27, 2025 16:14
@vbotbuildovich
Copy link
Collaborator

CI test results

test results on build#62420
test_id test_kind job_url test_status passed
rptest.tests.compaction_recovery_test.CompactionRecoveryUpgradeTest.test_index_recovery_after_upgrade ducktape https://buildkite.com/redpanda/redpanda/builds/62420#01954877-9414-4fe5-a4ba-7d3d790d37fa FLAKY 1/2
rptest.tests.scaling_up_test.ScalingUpTest.test_scaling_up_with_recovered_topic ducktape https://buildkite.com/redpanda/redpanda/builds/62420#0195487a-6bf0-4cae-83f3-ecdf6fa23061 FLAKY 1/5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants