mirror of https://github.com/apache/lucene.git
SOLR-4067: ZkStateReader#getLeaderProps should not return props for a leader that it does not think is live.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1408305 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ea255484c4
commit
267df1a190
|
@ -181,6 +181,9 @@ Other Changes
|
|||
* SOLR-3856: New tests for SqlEntityProcessor/CachedSqlEntityProcessor
|
||||
(James Dyer)
|
||||
|
||||
* SOLR-4067: ZkStateReader#getLeaderProps should not return props for a leader
|
||||
that it does not think is live. (Mark Miller)
|
||||
|
||||
================== 4.0.0 ==================
|
||||
|
||||
Versions of Major Components
|
||||
|
|
|
@ -408,7 +408,7 @@ public class ZkStateReader {
|
|||
while (System.currentTimeMillis() < timeoutAt) {
|
||||
if (clusterState != null) {
|
||||
final ZkNodeProps nodeProps = clusterState.getLeader(collection, shard);
|
||||
if (nodeProps != null) {
|
||||
if (nodeProps != null && getClusterState().liveNodesContain((String) nodeProps.get(ZkStateReader.NODE_NAME_PROP))) {
|
||||
return nodeProps;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue