You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "sami hoda (JIRA)" <ji...@apache.org> on 2012/09/05 19:28:07 UTC
[jira] [Commented] (SOLR-3787) Compress (internal) parameter
mismatch
[ https://issues.apache.org/jira/browse/SOLR-3787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13448904#comment-13448904 ]
sami hoda commented on SOLR-3787:
---------------------------------
This is a pretty big issue for us. Replication between data centers is taking a lot of bandwidth, and we are getting charged $500+ per month as a result. We've tweaked every setting, and its brought it down a little bit, but this setting being fixed would be huge!
> Compress (internal) parameter mismatch
> --------------------------------------
>
> Key: SOLR-3787
> URL: https://issues.apache.org/jira/browse/SOLR-3787
> Project: Solr
> Issue Type: Bug
> Components: replication (java)
> Affects Versions: 4.0-BETA
> Environment: N/A
> Reporter: Joseph Lamoree
> Assignee: Sami Siren
> Priority: Minor
> Fix For: 4.0
>
>
> 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.
--
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: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org