Skip to content
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-12808: Remove Deprecated Methods under StreamsMetrics #10724

Conversation

jlprat
Copy link
Contributor

@jlprat jlprat commented May 19, 2021

Removal of methods already deprecated since 2.5.
Adapt test to use the new alternative method.

Committer Checklist (excluded from commit message)

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

Removal of methods already deprecated since 2.5.
Adapt test to use the new alternative method.
@mjsax mjsax requested a review from cadonna May 19, 2021 18:40
Copy link
Contributor

@cadonna cadonna left a comment

Choose a reason for hiding this comment

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

Thank you for the PR, @jlprat !

The PR looks good to me. I had just two rather minor comments.

@@ -777,12 +777,12 @@ public void testLatencyMetrics() {
final String entity = "entity";
final String operation = "put";

final Sensor sensor1 = streamsMetrics.addLatencyAndThroughputSensor(scope, entity, operation, RecordingLevel.DEBUG);
Copy link
Contributor

Choose a reason for hiding this comment

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

You can also remove the @SuppressWarnings("deprecation") at the top of the method.

@@ -797,11 +797,11 @@ public void testThroughputMetrics() {
final String entity = "entity";
final String operation = "put";

final Sensor sensor1 = streamsMetrics.addThroughputSensor(scope, entity, operation, RecordingLevel.DEBUG);
Copy link
Contributor

Choose a reason for hiding this comment

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

You can also remove the @SuppressWarnings("deprecation") at the top of the method.

@jlprat
Copy link
Contributor Author

jlprat commented May 20, 2021

You are right, I'll fix those later today

@jlprat
Copy link
Contributor Author

jlprat commented May 20, 2021

Fixed pushed, @SuppressWarnings("deprecation") is now removed, Feel free to review @cadonna

@cadonna
Copy link
Contributor

cadonna commented May 21, 2021

Restarted the build since the JDK 11 build failed with

Process 'Gradle Test Executor 123' finished with non-zero exit value 143

@jlprat
Copy link
Contributor Author

jlprat commented May 21, 2021

Tests are now not passing, but they seem all unrelated to the change itself

@cadonna
Copy link
Contributor

cadonna commented May 21, 2021

Test failures are unrelated.

Copy link
Contributor

@cadonna cadonna left a comment

Choose a reason for hiding this comment

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

@jlprat Thank you for the PR!

@cadonna cadonna merged commit b46e17b into apache:trunk May 21, 2021
@jlprat
Copy link
Contributor Author

jlprat commented May 21, 2021

Thank you for the review @cadonna

@jlprat jlprat deleted the KAFKA-12808-remove-deprecated-methods-StreamsMetrics branch May 21, 2021 10:40
ijuma added a commit to ijuma/kafka that referenced this pull request May 26, 2021
…e-allocations-lz4

* apache-github/trunk: (43 commits)
  KAFKA-12800: Configure generator to fail on trailing JSON tokens (apache#10717)
  MINOR: clarify message ordering with max in-flight requests and idempotent producer (apache#10690)
  MINOR: Add log identifier/prefix printing in Log layer static functions (apache#10742)
  MINOR: update java doc for deprecated methods (apache#10722)
  MINOR: Fix deprecation warnings in SlidingWindowedCogroupedKStreamImplTest (apache#10703)
  KAFKA-12499: add transaction timeout verification (apache#10482)
  KAFKA-12620 Allocate producer ids on the controller (apache#10504)
  MINOR: Kafka Streams code samples formating unification (apache#10651)
  KAFKA-12808: Remove Deprecated Methods under StreamsMetrics (apache#10724)
  KAFKA-12522: Cast SMT should allow null value records to pass through (apache#10375)
  KAFKA-12820: Upgrade maven-artifact dependency to resolve CVE-2021-26291
  HOTFIX: fix checkstyle issue in KAFKA-12697
  KAFKA-12697: Add OfflinePartitionCount and PreferredReplicaImbalanceCount metrics to Quorum Controller (apache#10572)
  KAFKA-12342: Remove MetaLogShim and use RaftClient directly (apache#10705)
  KAFKA-12779: KIP-740, Clean up public API in TaskId and fix TaskMetadata#taskId() (apache#10735)
  KAFKA-12814: Remove Deprecated Method StreamsConfig getConsumerConfigs (apache#10737)
  MINOR: Eliminate redundant functions in LogTest suite (apache#10732)
  MINOR: Remove unused maxProducerIdExpirationMs parameter in Log constructor (apache#10723)
  MINOR: Updating files with release 2.7.1 (apache#10660)
  KAFKA-12809: Remove deprecated methods of Stores factory (apache#10729)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants