-
Notifications
You must be signed in to change notification settings - Fork 14.9k
KAFKA-19170 Move MetricsDuringTopicCreationDeletionTest to client-integration-tests module #19528
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
KAFKA-19170 Move MetricsDuringTopicCreationDeletionTest to client-integration-tests module #19528
Conversation
…tial.task.delay.ms cluster config prop. test passed
chia7712
left a comment
There was a problem hiding this 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.
...ion-tests/src/test/java/org/apache/kafka/clients/MetricsDuringTopicCreationDeletionTest.java
Outdated
Show resolved
Hide resolved
...ion-tests/src/test/java/org/apache/kafka/clients/MetricsDuringTopicCreationDeletionTest.java
Outdated
Show resolved
Hide resolved
FrankYang0529
left a comment
There was a problem hiding this 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.
| initialOfflinePartitionsCount = getGauge("OfflinePartitionsCount").value(); | ||
| initialPreferredReplicaImbalanceCount = getGauge("PreferredReplicaImbalanceCount").value(); | ||
| initialUnderReplicatedPartitionCount = getGauge("UnderReplicatedPartitions").value(); |
There was a problem hiding this comment.
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;
...ion-tests/src/test/java/org/apache/kafka/clients/MetricsDuringTopicCreationDeletionTest.java
Outdated
Show resolved
Hide resolved
test-common/test-common-runtime/src/main/java/org/apache/kafka/common/test/ClusterInstance.java
Outdated
Show resolved
Hide resolved
...ion-tests/src/test/java/org/apache/kafka/clients/MetricsDuringTopicCreationDeletionTest.java
Outdated
Show resolved
Hide resolved
...ion-tests/src/test/java/org/apache/kafka/clients/MetricsDuringTopicCreationDeletionTest.java
Outdated
Show resolved
Hide resolved
...ion-tests/src/test/java/org/apache/kafka/clients/MetricsDuringTopicCreationDeletionTest.java
Outdated
Show resolved
Hide resolved
...ion-tests/src/test/java/org/apache/kafka/clients/MetricsDuringTopicCreationDeletionTest.java
Outdated
Show resolved
Hide resolved
Yunyung
left a comment
There was a problem hiding this 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.
...ion-tests/src/test/java/org/apache/kafka/clients/MetricsDuringTopicCreationDeletionTest.java
Outdated
Show resolved
Hide resolved
...ion-tests/src/test/java/org/apache/kafka/clients/MetricsDuringTopicCreationDeletionTest.java
Outdated
Show resolved
Hide resolved
...ion-tests/src/test/java/org/apache/kafka/clients/MetricsDuringTopicCreationDeletionTest.java
Outdated
Show resolved
Hide resolved
...ion-tests/src/test/java/org/apache/kafka/clients/MetricsDuringTopicCreationDeletionTest.java
Outdated
Show resolved
Hide resolved
m1a2st
left a comment
There was a problem hiding this 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
...ion-tests/src/test/java/org/apache/kafka/clients/MetricsDuringTopicCreationDeletionTest.java
Outdated
Show resolved
Hide resolved
...ion-tests/src/test/java/org/apache/kafka/clients/MetricsDuringTopicCreationDeletionTest.java
Outdated
Show resolved
Hide resolved
...ion-tests/src/test/java/org/apache/kafka/clients/MetricsDuringTopicCreationDeletionTest.java
Outdated
Show resolved
Hide resolved
...ion-tests/src/test/java/org/apache/kafka/clients/MetricsDuringTopicCreationDeletionTest.java
Outdated
Show resolved
Hide resolved
...ion-tests/src/test/java/org/apache/kafka/clients/MetricsDuringTopicCreationDeletionTest.java
Outdated
Show resolved
Hide resolved
...ion-tests/src/test/java/org/apache/kafka/clients/MetricsDuringTopicCreationDeletionTest.java
Show resolved
Hide resolved
…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>
rewrite
MetricsDuringTopicCreationDeletionTesttoClusterTestinfraand 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