From f083f40b28f4474dddab8cc19c65aef8db015cb1 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 13 Dec 2019 04:06:07 -0500 Subject: [PATCH] SOLR-14076: clean up static fields leak in nightly-only test --- .../cloud/autoscaling/SearchRateTriggerIntegrationTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/SearchRateTriggerIntegrationTest.java b/solr/core/src/test/org/apache/solr/cloud/autoscaling/SearchRateTriggerIntegrationTest.java index 0c90548ab4f..a5b3cb63dd6 100644 --- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/SearchRateTriggerIntegrationTest.java +++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/SearchRateTriggerIntegrationTest.java @@ -51,6 +51,7 @@ import org.apache.solr.common.util.Utils; import org.apache.solr.core.SolrResourceLoader; import org.apache.solr.util.LogLevel; import org.apache.zookeeper.data.Stat; +import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; @@ -93,6 +94,11 @@ public class SearchRateTriggerIntegrationTest extends SolrCloudTestCase { } + @AfterClass + public static void cleanUpAfterClass() throws Exception { + cloudManager = null; + } + @Before public void beforeTest() throws Exception { cluster.deleteAllCollections();