SOLR-7178: OverseerAutoReplicaFailoverThread compares Integer objects using ==

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662935 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2015-02-28 13:28:18 +00:00
parent 68f87360dd
commit eb8079c050
2 changed files with 6 additions and 2 deletions

View File

@ -167,7 +167,10 @@ Bug Fixes
(Pablo Queixalos, shalin)
* SOLR-7139: Fix SolrContentHandler for TIKA to ignore multiple startDocument events.
(Chris A. Mattmann, Uwe Schindler)
(Chris A. Mattmann, Uwe Schindler)
* SOLR-7178: OverseerAutoReplicaFailoverThread compares Integer objects using ==
(shalin)
Optimizations
----------------------

View File

@ -152,7 +152,8 @@ public class OverseerAutoReplicaFailoverThread implements Runnable, Closeable {
return;
}
if (clusterState != null) {
if (lastClusterStateVersion == clusterState.getZkClusterStateVersion() && baseUrlForBadNodes.size() == 0 &&
if (clusterState.getZkClusterStateVersion() != null &&
clusterState.getZkClusterStateVersion().equals(lastClusterStateVersion) && baseUrlForBadNodes.size() == 0 &&
liveNodes.equals(clusterState.getLiveNodes())) {
// nothing has changed, no work to do
return;