File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
core/src/java/org/apache/solr/core Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -122,9 +122,7 @@ private void bootstrapConfDir(String confDir) throws IOException {
122122 "solr.configset.bootstrap.confdir must be a directory of configuration files, configPath: "
123123 + configPath );
124124 }
125- String confName =
126- System .getProperty (
127- ZkController .COLLECTION_PARAM_PREFIX + ZkController .CONFIGNAME_PROP , "configuration1" );
125+ String confName = System .getProperty ("solr.collection.config.name" , "configuration1" );
128126 this .uploadConfig (confName , configPath );
129127 }
130128
Original file line number Diff line number Diff line change @@ -94,16 +94,16 @@ teardown() {
9494 solr assert --started http://localhost:${SOLR_PORT} --timeout 5000
9595}
9696
97- @test " bootstrap configset using system property " {
97+ @test " bootstrap configset using bootstrap_confdir and collection.configName " {
9898 local confdir_path=" ${SOLR_TIP} /server/solr/configsets/sample_techproducts_configs/conf"
9999 test -d " ${confdir_path} "
100-
100+
101101 # This uploads the sample_techproducts_configs/conf directory as "techproducts_bootstrapped" configset
102- solr start -Dsolr.configset.bootstrap.confdir=" ${confdir_path} " -Dcollection.configName =techproducts_bootstrapped
102+ solr start -Dsolr.configset.bootstrap.confdir=" ${confdir_path} " -Dsolr.collection.config.name =techproducts_bootstrapped
103103 solr assert --started http://localhost:${SOLR_PORT} --timeout 5000
104-
104+
105105 # Allow time for the configset upload to complete
106106 sleep 1
107-
107+
108108 config_exists " techproducts_bootstrapped"
109109}
Original file line number Diff line number Diff line change @@ -21,3 +21,4 @@ solr.delete.unknown.cores=solr.cloud.startup.delete.unknown.cores.enabled
2121solr.config.set.forbidden.file.types =solr.configset.forbidden.file.types
2222solr.hide.stack.trace =solr.responses.stacktrace.enabled
2323bootstrap_confdir =solr.configset.bootstrap.confdir
24+ collection.config.name =solr.collection.config.name
You can’t perform that action at this time.
0 commit comments