Skip to content

KAFKA-8782: Close metrics in QuotaManagerTests#7191

Merged
ijuma merged 3 commits into
apache:trunkfrom
ijuma:close-metrics-in-quota-manager-test
Aug 11, 2019
Merged

KAFKA-8782: Close metrics in QuotaManagerTests#7191
ijuma merged 3 commits into
apache:trunkfrom
ijuma:close-metrics-in-quota-manager-test

Conversation

@ijuma

@ijuma ijuma commented Aug 10, 2019

Copy link
Copy Markdown
Member

Since Metrics was constructed with enableExpiration=false, this was
not a source of flakiness given the current implementation. This could
change in the future, so good to follow the class contract.

Included a few clean-ups with regards to redundant casts and type parameters
as well as usage of try with resources for inline usage of Metrics.

Committer Checklist (excluded from commit message)

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

@ijuma
ijuma requested a review from omkreddy August 10, 2019 22:36

@omkreddy omkreddy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@ijuma Thanks for the PR. LGTM.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

unused import checkstyle error.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks, I had forgotten to push the updated branch after I fixed this.

@ijuma
ijuma force-pushed the close-metrics-in-quota-manager-test branch from a017572 to 3ebc52b Compare August 11, 2019 18:40
@ijuma

ijuma commented Aug 11, 2019

Copy link
Copy Markdown
Member Author

Two jobs passed, one failed with known flake org.apache.kafka.connect.integration.RebalanceSourceConnectorsIntegrationTest.testReconfigConnector.

Merging to trunk.

@ijuma
ijuma merged commit 558bb1d into apache:trunk Aug 11, 2019
@ijuma
ijuma deleted the close-metrics-in-quota-manager-test branch August 11, 2019 22:31
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.

2 participants