Skip to content

KAFKA-17689 Migrate TieredStorageTestHarness to new test infra (AlterLogDirTest) #22306

Merged
chia7712 merged 6 commits into
apache:trunkfrom
m1a2st:KAFKA-17689
May 21, 2026
Merged

KAFKA-17689 Migrate TieredStorageTestHarness to new test infra (AlterLogDirTest) #22306
chia7712 merged 6 commits into
apache:trunkfrom
m1a2st:KAFKA-17689

Conversation

@m1a2st
Copy link
Copy Markdown
Collaborator

@m1a2st m1a2st commented May 18, 2026

Migrate AlterLogDirTest to the new test infrastructure

Reviewers: Chia-Ping Tsai chia7712@gmail.com, PoAn Yang
payang@apache.org, TaiJuWu tjwu1217@gmail.com

@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 small Small PRs labels May 18, 2026
public int brokerCount() {
return 2;
private static final String TEST_CLASS_NAME = "alterlogdirtest";
private static final int BROKER_COUNT = 2;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you please set it to 3 in order to create the offset topic? Alternatively, you could set the replication factor to 1 instead.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I have updated BROKER_COUNT to 3.

@github-actions github-actions Bot removed the triage PRs from the community label May 19, 2026
.setTypes(Set.of(Type.KRAFT))
.setBrokers(BROKER_COUNT)
.setDisksPerBroker(2)
.setServerProperties(createServerPropsForRemoteStorage(TEST_CLASS_NAME, BROKER_COUNT, 5))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about AlterLogDirTest.class.getSimpleName().toLowerCase(Locale.ROOT)? This follows pattern in TieredStorageTestHarness.

testClassName = testInfo.getTestClass().get().getSimpleName().toLowerCase(Locale.getDefault());

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, addressed it

@FrankYang0529 FrankYang0529 self-requested a review May 19, 2026 13:15
@chia7712 chia7712 merged commit 8c079f4 into apache:trunk May 21, 2026
25 checks passed
JiayaoS pushed a commit to JiayaoS/kafka that referenced this pull request May 21, 2026
…LogDirTest) (apache#22306)

Migrate `AlterLogDirTest` to the new test infrastructure

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>, PoAn Yang
 <payang@apache.org>, TaiJuWu <tjwu1217@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved small Small PRs 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.

4 participants