SOLR-5620: ZKStateReader.aliases should be volatile to ensure all threads see the latest aliases.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1569603 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2014-02-19 01:58:16 +00:00
parent f03e1927a1
commit b3044d6a04
2 changed files with 4 additions and 1 deletions

View File

@ -346,6 +346,9 @@ Bug Fixes
* SOLR-5741: UpdateShardHandler was not correctly setting max total connections
on the HttpClient. (Shawn Heisey)
* SOLR-5620: ZKStateReader.aliases should be volatile to ensure all threads see
the latest aliases. (Ramkumar Aiyengar via Mark Miller)
Optimizations
----------------------

View File

@ -180,7 +180,7 @@ public class ZkStateReader {
private ZkCmdExecutor cmdExecutor;
private Aliases aliases = new Aliases();
private volatile Aliases aliases = new Aliases();
private volatile boolean closed = false;