Solr
  1. Solr
  2. SOLR-187

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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

        Issue Links

          Activity

          Bertrand Delacretaz made changes -
          Link This issue duplicates SOLR-188 [ SOLR-188 ]
          Bertrand Delacretaz made changes -
          Resolution Duplicate [ 3 ]
          Status Open [ 1 ] Closed [ 6 ]
          Hoss Man made changes -
          Field Original Value New Value
          Link This issue duplicates SOLR-186 [ SOLR-186 ]
          Graham Stead created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development