You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ab...@apache.org on 2019/04/10 10:26:40 UTC
[lucene-solr] branch branch_8x updated: Release static solrClient
after the test is done (occasionally caused failures on jenkins).
This is an automated email from the ASF dual-hosted git repository.
ab pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/branch_8x by this push:
new a81d2c4 Release static solrClient after the test is done (occasionally caused failures on jenkins).
a81d2c4 is described below
commit a81d2c4a45ba863ca2f13296768a5b50139338f4
Author: Andrzej Bialecki <ab...@apache.org>
AuthorDate: Wed Apr 10 12:24:36 2019 +0200
Release static solrClient after the test is done (occasionally caused failures on jenkins).
---
.../apache/solr/handler/admin/AutoscalingHistoryHandlerTest.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/solr/core/src/test/org/apache/solr/handler/admin/AutoscalingHistoryHandlerTest.java b/solr/core/src/test/org/apache/solr/handler/admin/AutoscalingHistoryHandlerTest.java
index 2a44f46..935d2cd 100644
--- a/solr/core/src/test/org/apache/solr/handler/admin/AutoscalingHistoryHandlerTest.java
+++ b/solr/core/src/test/org/apache/solr/handler/admin/AutoscalingHistoryHandlerTest.java
@@ -49,6 +49,7 @@ import org.apache.solr.common.params.CommonParams;
import org.apache.solr.common.params.ModifiableSolrParams;
import org.apache.solr.common.util.NamedList;
import org.apache.solr.util.LogLevel;
+import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
@@ -97,6 +98,11 @@ public class AutoscalingHistoryHandlerTest extends SolrCloudTestCase {
cluster.waitForActiveCollection(COLL_NAME, 1, 3);
}
+ @AfterClass
+ public static void releaseClient() throws Exception {
+ solrClient = null;
+ }
+
public static class TesterListener extends TriggerListenerBase {
@Override