This is an automated email from the ASF dual-hosted git repository.
davidarthur pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new cdc99f1f013 KAFKA-14433 Clear Yammer metrics in
QuorumTestHarness#tearDown (#12942)
cdc99f1f013 is described below
commit cdc99f1f0130f9ca8f50f2b248bcd52c1121bd68
Author: David Arthur <[email protected]>
AuthorDate: Fri Dec 2 09:43:52 2022 -0500
KAFKA-14433 Clear Yammer metrics in QuorumTestHarness#tearDown (#12942)
Clear the Yammer metrics after each test. This will allow the RaftManager
and other objects to get properly GC'd
Reviewers: Jason Gustafson <[email protected]>
---
core/src/test/scala/integration/kafka/server/QuorumTestHarness.scala | 1 +
1 file changed, 1 insertion(+)
diff --git
a/core/src/test/scala/integration/kafka/server/QuorumTestHarness.scala
b/core/src/test/scala/integration/kafka/server/QuorumTestHarness.scala
index 4a5e3ace2a4..f746cec53d7 100755
--- a/core/src/test/scala/integration/kafka/server/QuorumTestHarness.scala
+++ b/core/src/test/scala/integration/kafka/server/QuorumTestHarness.scala
@@ -384,6 +384,7 @@ abstract class QuorumTestHarness extends Logging {
if (implementation != null) {
implementation.shutdown()
}
+ TestUtils.clearYammerMetrics()
System.clearProperty(JaasUtils.JAVA_LOGIN_CONFIG_PARAM)
Configuration.setConfiguration(null)
faultHandler.maybeRethrowFirstException()