Skip to content

MINOR: Fix transient failure in PartitionTest.testAddAndRemoveMetrics#6834

Merged
hachikuji merged 1 commit into
apache:trunkfrom
hachikuji:fix-partition-metric-test
May 29, 2019
Merged

MINOR: Fix transient failure in PartitionTest.testAddAndRemoveMetrics#6834
hachikuji merged 1 commit into
apache:trunkfrom
hachikuji:fix-partition-metric-test

Conversation

@hachikuji

Copy link
Copy Markdown
Contributor

The test is failing because other test cases are leaving some metrics in the registry. This patch cleans the registry before and after test runs.

Committer Checklist (excluded from commit message)

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

@ijuma ijuma left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the PR, LGTM. We should probably cherry-pick to 2.3 too.

@jsancio jsancio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks!

@ijuma

ijuma commented May 29, 2019

Copy link
Copy Markdown
Member

JDK 11 passed, JDK 8 had two flakes:

org.apache.kafka.connect.integration.RebalanceSourceConnectorsIntegrationTest.testDeleteConnector
kafka.api.ClientIdQuotaTest.testQuotaOverrideDelete

@ijuma

ijuma commented May 29, 2019

Copy link
Copy Markdown
Member

retest this please

@hachikuji
hachikuji merged commit 348e5d7 into apache:trunk May 29, 2019
@hachikuji

Copy link
Copy Markdown
Contributor Author

@ijuma Actually it's not needed in 2.3 since the failing test was not merged there

@ijuma

ijuma commented May 29, 2019

Copy link
Copy Markdown
Member

Good to know, thanks.

haidangdam pushed a commit to haidangdam/kafka that referenced this pull request May 29, 2019
…apache#6834)

The test was failing because other test cases are leaving some metrics in the registry. This patch cleans the registry before and after test runs.

Reviewers: Ismael Juma <ismael@juma.me.uk>
pengxiaolong pushed a commit to pengxiaolong/kafka that referenced this pull request Jun 14, 2019
…apache#6834)

The test was failing because other test cases are leaving some metrics in the registry. This patch cleans the registry before and after test runs.

Reviewers: Ismael Juma <ismael@juma.me.uk>
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