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

Compress (internal) parameter mismatch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0-BETA
    • 4.0
    • replication (java)
    • None
    • N/A

    Description

      In the following commit, the value of the parameter set in SnapPuller changed from "true" to "internal":

      http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/SnapPuller.java?r1=1353888&r2=1353889&

      Specifically, this line:
      formparams.add(new BasicNameValuePair(COMPRESSION, "true"));
      Was changed to this:
      params.set(COMPRESSION, "internal");

      When the ReplicationHandler tests the value sent in the query string, it uses Boolean.parseBoolean() and expects the string "true". I created a packet capture, watching the slave make a request of the master. The transfer of files fails when my solrconfig.xml has a slave configuration like this:
      <str name="compression">internal</str>

      An exception is thrown on the slave because it is expecting a compressed response from the following:
      /solr/core/replication?command=filecontent&generation=N ... &compression=internal&checksum=true&wt=filestream

      When I manually make the above request, replacing compression=internal with compression=true, the expected compressed response is received from the master.

      Attachments

        Issue Links

          Activity

            People

              siren Sami Siren
              jlamoree Joseph Lamoree
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: