You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2020/08/11 00:26:23 UTC
[lucene-solr] branch reference_impl_dev updated: @487 Races.
This is an automated email from the ASF dual-hosted git repository.
markrmiller pushed a commit to branch reference_impl_dev
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/reference_impl_dev by this push:
new 1d2f641 @487 Races.
1d2f641 is described below
commit 1d2f641d19cd60aaca2aa6ba883ac28f58423b3d
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Mon Aug 10 19:26:06 2020 -0500
@487 Races.
---
.../src/java/org/apache/solr/handler/component/SearchHandler.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java b/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java
index f737d4e..d0c2480 100644
--- a/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java
+++ b/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java
@@ -73,9 +73,9 @@ public class SearchHandler extends RequestHandlerBase implements SolrCoreAware,
private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
protected volatile List<SearchComponent> components;
- private ShardHandlerFactory shardHandlerFactory;
- private PluginInfo shfInfo;
- private SolrCore core;
+ private volatile ShardHandlerFactory shardHandlerFactory;
+ private volatile PluginInfo shfInfo;
+ private volatile SolrCore core;
protected List<String> getDefaultComponents() {
ArrayList<String> names = new ArrayList<>(8);
@@ -174,6 +174,7 @@ public class SearchHandler extends RequestHandlerBase implements SolrCoreAware,
@SuppressWarnings({"unchecked"})
private void initComponents() {
+ assert core != null;
Object declaredComponents = initArgs.get(INIT_COMPONENTS);
List<String> first = (List<String>) initArgs.get(INIT_FIRST_COMPONENTS);
List<String> last = (List<String>) initArgs.get(INIT_LAST_COMPONENTS);