Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
None
-
None
-
None
-
Gentoo, Solr 1.1
Description
The current curl statements look like this:
abc: rs=`curl http://${solr_hostname}:${solr_port}/solr/update -s -d "<commit/>"`
abo: rs=`curl http://${solr_hostname}:${solr_port}/solr/update -s -d "<optimize/>"`
commit: rs=`curl http://${solr_hostname}:${solr_port}/solr/update -s -d "<commit/>"`
optimize: rs=`curl http://${solr_hostname}:${solr_port}/solr/update -s -d "<optimize/>"`
readercycle: rs=`curl http://${solr_hostname}:${solr_port}/solr/update -s -d "<commit/>"`
To ensure correct operation in multi-instance environments, replace /solr/ with /${webapp_name}/ like this:
abc: rs=`curl http://${solr_hostname}:${solr_port}/${webapp_name}/update -s -d "<commit/>"`
abo: rs=`curl http://${solr_hostname}:${solr_port}/${webapp_name}/update -s -d "<optimize/>"`
commit: rs=`curl http://${solr_hostname}:${solr_port}/${webapp_name}/update -s -d "<commit/>"`
optimize: rs=`curl http://${solr_hostname}:${solr_port}/${webapp_name}/update -s -d "<optimize/>"`
readercycle: rs=`curl http://${solr_hostname}:${solr_port}/${webapp_name}/update -s -d "<commit/>"`
I use the modified scripts in environments with 3 Solr instances and have no problems.
This bug does not affect single instances running with the default path, only multiple instances with different paths.
best regards,
-Graham