Skip to content

KAFKA-20343: Refactor LogCleanerLagIntegrationTest to use a builder for LogCleaner setup#21843

Open
nileshkumar3 wants to merge 3 commits intoapache:trunkfrom
nileshkumar3:KAFKA-20343-log-cleaner-test-builder
Open

KAFKA-20343: Refactor LogCleanerLagIntegrationTest to use a builder for LogCleaner setup#21843
nileshkumar3 wants to merge 3 commits intoapache:trunkfrom
nileshkumar3:KAFKA-20343-log-cleaner-test-builder

Conversation

@nileshkumar3
Copy link
Copy Markdown
Contributor

Replaces the makeCleaner overload chain in LogCleanerLagIntegrationTest with a small fluent builder so call sites use named configuration instead of positional overloads.

@github-actions github-actions Bot added triage PRs from the community tests Test fixes (including flaky tests) storage Pull requests that target the storage module labels Mar 21, 2026
@nileshkumar3 nileshkumar3 marked this pull request as ready for review March 21, 2026 00:53
@nileshkumar3
Copy link
Copy Markdown
Contributor Author

LogCleanerLagIntegrationTest swaps the makeCleaner overload ladder for LogCleanerTestFixtureBuilder so each test sets only the knobs it needs. nit: sanity-check builder defaults (backoffMs, segmentSize) against the old helpers for every callsite you migrated.

Thanks for the nit — I rechecked every migrated callsite against the old makeCleaner overloads; behavior for backoff and segment size is unchanged. I set the builder’s default backoff to CleanerConfig.LOG_CLEANER_BACKOFF_MS and added explicit .segmentSize(DEFAULT_SEGMENT_SIZE) on the two tests that used makeCleaner(partitions, maxMessageSize, backoffMs) so 2048 stays obvious at the call site.

@github-actions github-actions Bot removed the triage PRs from the community label Mar 24, 2026
Resolve conflict in LogCleanerIntegrationTest: keep LogCleanerTestFixtureBuilder,
migrate remaining makeCleaner call sites from merged trunk content, add
propertyOverrides/cleanerIoBufferSize fluent methods and logConfigProperties(int).

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

storage Pull requests that target the storage module tests Test fixes (including flaky tests)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant