Skip to content

HOTFIX: fix backport of #11248 by future-proofing the EmbeddedKafkaCluster#11257

Merged
ableegoldman merged 2 commits intoapache:2.8from
ableegoldman:HOTFIX-fix-backport-of-MetricsReporterIntegrationTest
Aug 25, 2021
Merged

HOTFIX: fix backport of #11248 by future-proofing the EmbeddedKafkaCluster#11257
ableegoldman merged 2 commits intoapache:2.8from
ableegoldman:HOTFIX-fix-backport-of-MetricsReporterIntegrationTest

Conversation

@ableegoldman
Copy link
Copy Markdown
Member

A backport of #11248 broke the 2.8 build due to usage of the EmbeddedKafkaCluster#stop method, which used to be private. It seems we made this public when we upgraded to JUnit5 on the 3.0 branch and had to remove the ExternalResource that was previously responsible for calling start() and stop() for this class using the no-longer-available @ClassRule annotation.

Rather than adapt this test to the 2.8 style by migrating it to use @ClassRule as well, I opted to just make the stop() method public as well (since its analogue start()` has always been public anyways). This should hopefully prevent any future backports that include integration tests from having to manually go in and adapt the test, or accidentally break the build as happened here.

@ableegoldman
Copy link
Copy Markdown
Member Author

@jolshan

Copy link
Copy Markdown
Member

@showuon showuon left a comment

Choose a reason for hiding this comment

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

LGTM! And it also can avoid further backport issue. Nice!

@ableegoldman
Copy link
Copy Markdown
Member Author

Failures are unrelated are known to be flaky on older branches (connect.integration.RebalanceSourceConnectorsIntegrationTest.testMultipleWorkersRejoining) -- will merge to unblock the 2.8 build

@ableegoldman ableegoldman merged commit 03d5a8a into apache:2.8 Aug 25, 2021
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