SOLR-5761: HttpSolrServer has a few fields that can be set via setters but are not volatile.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1573442 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2014-03-03 04:35:45 +00:00
parent a42db70dec
commit aba8b8ae3c
2 changed files with 8 additions and 5 deletions

View File

@ -110,6 +110,9 @@ Bug Fixes
streamDeletes is true that should be tucked into the if statement below it.
(Mark Miller, Gregory Chanan)
* SOLR-5761: HttpSolrServer has a few fields that can be set via setters but
are not volatile. (Mark Miller, Gregory Chanan)
Optimizations
----------------------
* SOLR-1880: Distributed Search skips GET_FIELDS stage if EXECUTE_QUERY

View File

@ -86,7 +86,7 @@ public class HttpSolrServer extends SolrServer {
/**
* The URL of the Solr server.
*/
protected String baseUrl;
protected volatile String baseUrl;
/**
* Default value: null / empty.
@ -115,14 +115,14 @@ public class HttpSolrServer extends SolrServer {
private final HttpClient httpClient;
private boolean followRedirects = false;
private volatile boolean followRedirects = false;
private int maxRetries = 0;
private volatile int maxRetries = 0;
private boolean useMultiPartPost;
private volatile boolean useMultiPartPost;
private final boolean internalClient;
private Set<String> queryParams = Collections.emptySet();
private volatile Set<String> queryParams = Collections.emptySet();
/**
* @param baseURL