-
Notifications
You must be signed in to change notification settings - Fork 14.8k
KAFKA-19773: Include push interval in ClientTelemetryReceiver context #20672
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
Conversation
server/src/main/java/org/apache/kafka/server/metrics/ClientTelemetryPlugin.java
Outdated
Show resolved
Hide resolved
mimaison
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've made a first pass and left a few suggestions.
clients/src/main/java/org/apache/kafka/server/telemetry/ClientTelemetry.java
Outdated
Show resolved
Hide resolved
clients/src/main/java/org/apache/kafka/server/telemetry/ClientTelemetryContext.java
Outdated
Show resolved
Hide resolved
clients/src/main/java/org/apache/kafka/server/telemetry/ClientTelemetryContext.java
Outdated
Show resolved
Hide resolved
clients/src/main/java/org/apache/kafka/server/telemetry/ClientTelemetryContext.java
Show resolved
Hide resolved
clients/src/main/java/org/apache/kafka/server/telemetry/ClientTelemetry.java
Outdated
Show resolved
Hide resolved
...src/test/java/org/apache/kafka/server/metrics/ClientTelemetryInterfaceCompatibilityTest.java
Outdated
Show resolved
Hide resolved
...src/test/java/org/apache/kafka/server/metrics/ClientTelemetryInterfaceCompatibilityTest.java
Outdated
Show resolved
Hide resolved
...src/test/java/org/apache/kafka/server/metrics/ClientTelemetryInterfaceCompatibilityTest.java
Outdated
Show resolved
Hide resolved
AndrewJSchofield
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've done an initial review only so far.
clients/src/main/java/org/apache/kafka/server/telemetry/ClientTelemetryExporterProvider.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/kafka/server/metrics/ClientTelemetryPlugin.java
Outdated
Show resolved
Hide resolved
|
@see-quick Please can you merge latest changes from trunk into your branch. The failing test has been marked as flaky and your build should pass. |
mimaison
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 updates, I made another pass and left a few comments.
core/src/test/scala/unit/kafka/server/DynamicBrokerConfigTest.scala
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/kafka/server/metrics/ClientTelemetryExporterPlugin.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/kafka/server/metrics/DefaultClientTelemetryContext.java
Outdated
Show resolved
Hide resolved
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
…lugin Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
core/src/test/scala/unit/kafka/server/DynamicBrokerConfigTest.scala
Outdated
Show resolved
Hide resolved
Signed-off-by: see-quick <[email protected]>
mimaison
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 updates. Should we also update ClientTelemetryTest and KafkaStreamsTelemetryIntegrationTest to use the new (or maybe both) APIs?
server/src/main/java/org/apache/kafka/server/metrics/DefaultClientTelemetryContext.java
Outdated
Show resolved
Hide resolved
AndrewJSchofield
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.
I have just one nit comment remaining. Apart from that, looks good to me.
clients/src/main/java/org/apache/kafka/server/telemetry/ClientTelemetryExporterProvider.java
Outdated
Show resolved
Hide resolved
Signed-off-by: see-quick <[email protected]>
...ents-integration-tests/src/test/java/org/apache/kafka/clients/admin/ClientTelemetryTest.java
Outdated
Show resolved
Hide resolved
...ents-integration-tests/src/test/java/org/apache/kafka/clients/admin/ClientTelemetryTest.java
Outdated
Show resolved
Hide resolved
|
The failing test is not related to this PR more [1]. |
AndrewJSchofield
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. Looks good from my point of view.
mimaison
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.
I'm really not sure the extensive changes made to KafkaStreamsTelemetryIntegrationTest are worth it. The new tests don't seem to be actually testing the new features from KIP-1217.
...tion-tests/src/test/java/org/apache/kafka/streams/integration/KafkaStreamsTelemetryBase.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/apache/kafka/server/metrics/ClientTelemetryInterfaceTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
Signed-off-by: see-quick <[email protected]>
mimaison
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.
LGTM
|
The test failures in |
| false); | ||
| } | ||
|
|
||
| @SuppressWarnings("deprecation") |
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.
Hi all, this should be replaced with removal. I got below warnings when building kafka. fixed in #20830.
/Users/brandboat/Code/kafka/kafka/server/src/test/java/org/apache/kafka/server/metrics/ClientMetricsTestUtils.java:102: warning: [removal] ClientTelemetryReceiver in org.apache.kafka.server.telemetry has been deprecated and marked for removal
public static class TestClientMetricsReceiver implements ClientTelemetryReceiver {
^
/Users/brandboat/Code/kafka/kafka/server/src/test/java/org/apache/kafka/server/metrics/ClientMetricsTestUtils.java:130: warning: [removal] ClientTelemetry in org.apache.kafka.server.telemetry has been deprecated and marked for removal
public static class TestDualImplementation implements ClientTelemetry, ClientTelemetryExporterProvider {
^
/Users/brandboat/Code/kafka/kafka/server/src/test/java/org/apache/kafka/server/metrics/ClientMetricsTestUtils.java:140: warning: [removal] ClientTelemetryReceiver in org.apache.kafka.server.telemetry has been deprecated and marked for removal
public ClientTelemetryReceiver clientReceiver() {
^
| @SuppressWarnings("deprecation") | |
| @SuppressWarnings("removal") |
… (KIP-1217) (apache#20672) Reviewers: Mickael Maison <[email protected]>, Andrew Schofield <[email protected]>
This PR implements include push internal by introducing a new
ClientTelemetryExporter API. More details can be found in the KIP [1].
[1] -
https://cwiki.apache.org/confluence/display/KAFKA/KIP-1217%3A+Include+push+interval+in+ClientTelemetryReceiver+context