Skip to content

Conversation

@yunchipang
Copy link
Contributor

@yunchipang yunchipang commented Apr 21, 2025

rewrite MetricsDuringTopicCreationDeletionTest to ClusterTest infra
and move it to clients-integration-tests module.

Reviewers: PoAn Yang payang@apache.org, Ken Huang s7133700@gmail.com, Jhen-Yung Hsu jhenyunghsu@gmail.com, Chia-Ping Tsai chia7712@gmail.com

@github-actions github-actions bot added triage PRs from the community core Kafka Broker tests Test fixes (including flaky tests) labels Apr 21, 2025
@yunchipang yunchipang changed the title [WIP] KAFKA-19170: migrate MetricsDuringTopicCreationDeletionTest [WIP] KAFKA-19170: Move MetricsDuringTopicCreationDeletionTest to client-integration-tests module Apr 23, 2025
@github-actions github-actions bot added build Gradle build or GitHub Actions clients labels Apr 25, 2025
Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@yunchipang thanks for this patch. could you please run ./gradlew spotlessApply to format the imports. Additionally, please add <allow pkg="com.yammer.metrics.core" /> to https://github.com/apache/kafka/blob/trunk/checkstyle/import-control-clients-integration-tests.xml.

@yunchipang yunchipang marked this pull request as ready for review April 25, 2025 21:33
@github-actions github-actions bot removed the triage PRs from the community label Apr 26, 2025
Copy link
Member

@FrankYang0529 FrankYang0529 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Leave some comments.

Comment on lines 72 to 74
initialOfflinePartitionsCount = getGauge("OfflinePartitionsCount").value();
initialPreferredReplicaImbalanceCount = getGauge("PreferredReplicaImbalanceCount").value();
initialUnderReplicatedPartitionCount = getGauge("UnderReplicatedPartitions").value();
Copy link
Member

@FrankYang0529 FrankYang0529 Apr 26, 2025

Choose a reason for hiding this comment

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

Will these initial variables get other value after setUp function? If not, we can remove this block and set them as final value.

    private final int initialOfflinePartitionsCount = 0;
    private final int initialPreferredReplicaImbalanceCount = 0;
    private final int initialUnderReplicatedPartitionCount = 0;

@chia7712 chia7712 changed the title [WIP] KAFKA-19170: Move MetricsDuringTopicCreationDeletionTest to client-integration-tests module KAFKA-19170 Move MetricsDuringTopicCreationDeletionTest to client-integration-tests module Apr 26, 2025
@yunchipang yunchipang requested a review from chia7712 April 30, 2025 21:37
Copy link
Collaborator

@Yunyung Yunyung left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. I left some comments and please update the PR title client->clients.

Copy link
Collaborator

@m1a2st m1a2st left a comment

Choose a reason for hiding this comment

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

Thanks @yunchipang for this patch, a little comments

@chia7712 chia7712 merged commit 4e77466 into apache:trunk May 6, 2025
20 checks passed
@yunchipang yunchipang deleted the KAFKA-19170-migrate-MetricsDuringTopicCreationDeletionTest-to-java branch May 6, 2025 16:19
shmily7829 pushed a commit to shmily7829/kafka that referenced this pull request May 7, 2025
…egration-tests module (apache#19528)

rewrite `MetricsDuringTopicCreationDeletionTest` to `ClusterTest` infra
and move it to clients-integration-tests module.

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

Labels

build Gradle build or GitHub Actions ci-approved clients core Kafka Broker tests Test fixes (including flaky tests)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants