lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph Lamoree (JIRA)" <>
Subject [jira] [Created] (SOLR-3787) Compress (internal) parameter mismatch
Date Wed, 05 Sep 2012 00:09:08 GMT
Joseph Lamoree created SOLR-3787:

             Summary: Compress (internal) parameter mismatch
                 Key: SOLR-3787
             Project: Solr
          Issue Type: Bug
          Components: replication (java)
    Affects Versions: 4.0-BETA
         Environment: N/A
            Reporter: Joseph Lamoree
            Priority: Minor

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

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
  /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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message