mirror of https://github.com/apache/lucene.git
SOLR-5319: Remove unused and incorrect router name from Collection ZK nodes
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1530521 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e408affd6a
commit
924865bf4a
|
@ -144,6 +144,9 @@ Other Changes
|
|||
* SOLR-5264: Move methods for getting config information from
|
||||
FieldMutatingUpdateProcessorFactory to NamedList. (Shawn Heisey)
|
||||
|
||||
* SOLR-5319: Remove unused and incorrect router name from Collection ZK nodes.
|
||||
(Jessica Cheng via shalin)
|
||||
|
||||
================== 4.5.0 ==================
|
||||
|
||||
Versions of Major Components
|
||||
|
|
|
@ -1160,18 +1160,6 @@ public final class ZkController {
|
|||
getConfName(collection, collectionPath, collectionProps);
|
||||
}
|
||||
|
||||
if (collectionProps.get(DocCollection.DOC_ROUTER) == null) {
|
||||
Object numShards = collectionProps.get(ZkStateReader.NUM_SHARDS_PROP);
|
||||
if (numShards == null) {
|
||||
numShards = System.getProperty(ZkStateReader.NUM_SHARDS_PROP);
|
||||
}
|
||||
if (numShards == null) {
|
||||
collectionProps.put(DocCollection.DOC_ROUTER, ZkNodeProps.makeMap("name",ImplicitDocRouter.NAME));
|
||||
} else {
|
||||
collectionProps.put(DocCollection.DOC_ROUTER, ZkNodeProps.makeMap("name", DocRouter.DEFAULT_NAME));
|
||||
}
|
||||
}
|
||||
|
||||
collectionProps.remove(ZkStateReader.NUM_SHARDS_PROP); // we don't put numShards in the collections properties
|
||||
|
||||
ZkNodeProps zkProps = new ZkNodeProps(collectionProps);
|
||||
|
|
Loading…
Reference in New Issue