Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-187

abc, abo, commit, optimize, and readercycle scripts have erroneous curl statements for multi-instance environments

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: replication (scripts)
    • Labels:
      None
    • Environment:

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gstead Graham Stead
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: