mirror of https://github.com/apache/lucene.git
SOLR-5993: ZkController can warn about shard leader conflict even after the conflict is resolved
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1588415 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bbad949644
commit
a536cb3548
|
@ -108,6 +108,9 @@ Bug Fixes
|
|||
was an exception while trying to register as the leader.
|
||||
(Mark Miller, Alan Woodward)
|
||||
|
||||
* SOLR-5993: ZkController can warn about shard leader conflict even after the conflict
|
||||
is resolved. (Gregory Chanan via shalin)
|
||||
|
||||
Other Changes
|
||||
---------------------
|
||||
|
||||
|
|
|
@ -856,19 +856,18 @@ public final class ZkController {
|
|||
+ cloudDesc.getShardId() + " our state says:"
|
||||
+ clusterStateLeaderUrl + " but zookeeper says:" + leaderUrl);
|
||||
}
|
||||
Thread.sleep(msInSec);
|
||||
tries++;
|
||||
clusterStateLeaderUrl = zkStateReader.getLeaderUrl(collection, shardId,
|
||||
timeoutms);
|
||||
leaderUrl = getLeaderProps(collection, cloudDesc.getShardId(), timeoutms)
|
||||
.getCoreUrl();
|
||||
|
||||
if (tries % 30 == 0) {
|
||||
String warnMsg = String.format(Locale.ENGLISH, "Still seeing conflicting information about the leader "
|
||||
+ "of shard %s for collection %s after %d seconds; our state says %s, but ZooKeeper says %s",
|
||||
cloudDesc.getShardId(), collection, tries, clusterStateLeaderUrl, leaderUrl);
|
||||
log.warn(warnMsg);
|
||||
}
|
||||
Thread.sleep(msInSec);
|
||||
clusterStateLeaderUrl = zkStateReader.getLeaderUrl(collection, shardId,
|
||||
timeoutms);
|
||||
leaderUrl = getLeaderProps(collection, cloudDesc.getShardId(), timeoutms)
|
||||
.getCoreUrl();
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in New Issue