mirror of https://github.com/apache/lucene.git
SOLR-6698: Solr is not consistent wrt ZkCredentialsProvider / ZkCredentialProvider
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1637016 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7cd68fe196
commit
3e5a59c20a
|
@ -365,6 +365,10 @@ Other Changes
|
|||
relative paths for solrconfig.xml <lib> references with solr.install.dir
|
||||
system property; bin/solr scripts will set it appropriately. (ehatcher)
|
||||
|
||||
* SOLR-6698: Solr is not consistent wrt ZkCredentialsProvider / ZkCredentialProvider.
|
||||
References to zkCredentialProvider in System properties or configurations should be
|
||||
changed to zkCredentialsProvider. (Gregory Chanan)
|
||||
|
||||
================== 4.10.3 ==================
|
||||
|
||||
Bug Fixes
|
||||
|
|
|
@ -235,9 +235,9 @@ public final class ZkController {
|
|||
zkACLProvider = new DefaultZkACLProvider();
|
||||
}
|
||||
|
||||
String zkCredentialProviderClass = cc.getConfig().getZkCredentialProviderClass();
|
||||
if (zkCredentialProviderClass != null && zkCredentialProviderClass.trim().length() > 0) {
|
||||
strat.setZkCredentialsToAddAutomatically(cc.getResourceLoader().newInstance(zkCredentialProviderClass, ZkCredentialsProvider.class));
|
||||
String zkCredentialsProviderClass = cc.getConfig().getZkCredentialsProviderClass();
|
||||
if (zkCredentialsProviderClass != null && zkCredentialsProviderClass.trim().length() > 0) {
|
||||
strat.setZkCredentialsToAddAutomatically(cc.getResourceLoader().newInstance(zkCredentialsProviderClass, ZkCredentialsProvider.class));
|
||||
} else {
|
||||
strat.setZkCredentialsToAddAutomatically(new DefaultZkCredentialsProvider());
|
||||
}
|
||||
|
|
|
@ -215,8 +215,8 @@ public abstract class ConfigSolr {
|
|||
return get(CfgProp.SOLR_ADMINHANDLER, "org.apache.solr.handler.admin.CoreAdminHandler");
|
||||
}
|
||||
|
||||
public String getZkCredentialProviderClass() {
|
||||
return get(CfgProp.SOLR_ZKCREDENTIALPROVIDER, null);
|
||||
public String getZkCredentialsProviderClass() {
|
||||
return get(CfgProp.SOLR_ZKCREDENTIALSPROVIDER, null);
|
||||
}
|
||||
|
||||
public String getZkACLProviderClass() {
|
||||
|
@ -299,7 +299,7 @@ public abstract class ConfigSolr {
|
|||
SOLR_AUTOREPLICAFAILOVERWORKLOOPDELAY,
|
||||
SOLR_AUTOREPLICAFAILOVERBADNODEEXPIRATION,
|
||||
|
||||
SOLR_ZKCREDENTIALPROVIDER,
|
||||
SOLR_ZKCREDENTIALSPROVIDER,
|
||||
SOLR_ZKACLPROVIDER,
|
||||
|
||||
//TODO: Remove all of these elements for 5.0
|
||||
|
|
|
@ -165,7 +165,7 @@ public class ConfigSolrXml extends ConfigSolr {
|
|||
storeConfigPropertyAsBoolean(s, nl, CfgProp.SOLR_GENERICCORENODENAMES, "genericCoreNodeNames");
|
||||
|
||||
storeConfigPropertyAsString(s, nl, CfgProp.SOLR_ZKACLPROVIDER, "zkACLProvider");
|
||||
storeConfigPropertyAsString(s, nl, CfgProp.SOLR_ZKCREDENTIALPROVIDER, "zkCredentialProvider");
|
||||
storeConfigPropertyAsString(s, nl, CfgProp.SOLR_ZKCREDENTIALSPROVIDER, "zkCredentialsProvider");
|
||||
|
||||
errorOnLeftOvers(s, nl);
|
||||
}
|
||||
|
|
|
@ -146,7 +146,7 @@ public class ConfigSolrXmlOld extends ConfigSolr {
|
|||
storeConfigPropertyAsBoolean(CfgProp.SOLR_AUTOREPLICAFAILOVERWAITAFTEREXPIRATION, "solr/cores/@autoReplicaFailoverWaitAfterExpiration");
|
||||
storeConfigPropertyAsBoolean(CfgProp.SOLR_AUTOREPLICAFAILOVERWORKLOOPDELAY, "solr/cores/@autoReplicaFailoverWorkLoopDelay");
|
||||
storeConfigPropertyAsString(CfgProp.SOLR_ZKACLPROVIDER, "solr/cores/@zkACLProvider");
|
||||
storeConfigPropertyAsString(CfgProp.SOLR_ZKCREDENTIALPROVIDER, "solr/cores/@zkCredentialProvider");
|
||||
storeConfigPropertyAsString(CfgProp.SOLR_ZKCREDENTIALSPROVIDER, "solr/cores/@zkCredentialsProvider");
|
||||
storeConfigPropertyAsString(CfgProp.SOLR_MANAGEMENTPATH, "solr/cores/@managementPath");
|
||||
storeConfigPropertyAsBoolean(CfgProp.SOLR_SHARESCHEMA, "solr/cores/@shareSchema");
|
||||
storeConfigPropertyAsInt(CfgProp.SOLR_TRANSIENTCACHESIZE, "solr/cores/@transientCacheSize");
|
||||
|
|
Loading…
Reference in New Issue