Skip to content

Minor: Rename methods to add metrics to sensor in StreamsMetricsImpl#7161

Merged
guozhangwang merged 1 commit intoapache:trunkfrom
cadonna:refactor_StreamsMetricsImpl
Aug 6, 2019
Merged

Minor: Rename methods to add metrics to sensor in StreamsMetricsImpl#7161
guozhangwang merged 1 commit intoapache:trunkfrom
cadonna:refactor_StreamsMetricsImpl

Conversation

@cadonna
Copy link
Copy Markdown
Member

@cadonna cadonna commented Aug 5, 2019

Renames method names in StreamsMetricsImpl to make them consistent.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@cadonna
Copy link
Copy Markdown
Member Author

cadonna commented Aug 5, 2019

Copy link
Copy Markdown
Member

@ableegoldman ableegoldman left a comment

Choose a reason for hiding this comment

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

LGTM, just curious though what is the motivation here? IS it just to clarify that these methods are adding to a sensor, or will we be adding some other methods later that necessitate this?

Copy link
Copy Markdown
Contributor

@guozhangwang guozhangwang left a comment

Choose a reason for hiding this comment

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

This is from a previous PR's conversation to make the API naming consistency.

@guozhangwang
Copy link
Copy Markdown
Contributor

retest this please

@cadonna
Copy link
Copy Markdown
Member Author

cadonna commented Aug 6, 2019

In Java 11 and Scala 2.13 the following tests failed

org.apache.kafka.connect.integration.ExampleConnectIntegrationTest.testSourceConnector
kafka.api.AdminClientIntegrationTest.testElectUncleanLeadersForManyPartitions

In Java 8 the following tests failed

kafka.api.AdminClientIntegrationTest.testIncrementalAlterConfigsForLog4jLogLevels
kafka.api.AdminClientIntegrationTest.testIncrementalAlterConfigsForLog4jLogLevelsCanResetLoggerToCurrentRoot
kafka.api.SaslSslAdminClientIntegrationTest.testIncrementalAlterConfigsForLog4jLogLevels
kafka.api.SaslSslAdminClientIntegrationTest.testIncrementalAlterConfigsForLog4jLogLevelsCanResetLoggerToCurrentRoot

Retest this, please

@guozhangwang guozhangwang merged commit 7663a6c into apache:trunk Aug 6, 2019
ijuma added a commit to confluentinc/kafka that referenced this pull request Aug 8, 2019
The avro upgrade was needed to fix the following error during
':support-metrics-client:generateAvro':

Caused by: org.apache.velocity.exception.MethodInvocationException: Variable $velocityCount has not been set at /org/apache/avro/compiler/specific/templates/java/classic/record.vm[line 82, column 150]

Conflicts:
 * gradle.properties -> trivial fix, `scalaVersion` is next to `version`, which
 is different in ccs kafka
 * gradle/dependencies.gradle -> reduce divergence with apache kafka by using
 `httpclient` instead of `httpcomponents` from the `versions` array. Remove
 unused `httpmime` and `httpcomponents` from said array.

* apache-github/trunk:
  MINOR: Update dependencies for Kafka 2.4 (apache#7126)
  KAFKA-8599: Use automatic RPC generation in ExpireDelegationToken
  MINOR: Upgrade jackson-databind to 2.9.9.3 (apache#7125)
  MINOR: some small style fixes to RoundRobinPartitioner
  KAFKA-8736: Streams performance improvement, use isEmpty() rather than size() == 0 (apache#7164)
  Minor: Refactor methods to add metrics to sensor in `StreamsMetricsImpl` (apache#7161)
@cadonna cadonna deleted the refactor_StreamsMetricsImpl branch October 21, 2019 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants