You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by da...@apache.org on 2018/12/12 07:43:16 UTC

[2/2] lucene-solr:jira/http2: Preventing read stale value of defaultClient

Preventing read stale value of defaultClient


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/9def8c11
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/9def8c11
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/9def8c11

Branch: refs/heads/jira/http2
Commit: 9def8c11a097632967c8ddff237b07d2245e0737
Parents: c9c946b
Author: Cao Manh Dat <da...@apache.org>
Authored: Wed Dec 12 07:43:03 2018 +0000
Committer: Cao Manh Dat <da...@apache.org>
Committed: Wed Dec 12 07:43:03 2018 +0000

----------------------------------------------------------------------
 .../org/apache/solr/handler/component/HttpShardHandlerFactory.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9def8c11/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandlerFactory.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandlerFactory.java b/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandlerFactory.java
index 3c16cf8..6c37e80 100644
--- a/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandlerFactory.java
+++ b/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandlerFactory.java
@@ -89,7 +89,7 @@ public class HttpShardHandlerFactory extends ShardHandlerFactory implements org.
       false
   );
 
-  protected Http2SolrClient defaultClient;
+  protected volatile Http2SolrClient defaultClient;
   protected InstrumentedHttpListenerFactory httpListenerFactory;
   private LBHttp2SolrClient loadbalancer;