lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ahmet Arslan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SOLR-2307) PHPSerialized fails with sharded queries
Date Wed, 19 Jan 2011 02:38:46 GMT

    [ https://issues.apache.org/jira/browse/SOLR-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12983505#action_12983505
] 

Ahmet Arslan commented on SOLR-2307:
------------------------------------

Hoss, can you attach committed patch? I was wondering about predictable field order solution.

> PHPSerialized fails with sharded queries
> ----------------------------------------
>
>                 Key: SOLR-2307
>                 URL: https://issues.apache.org/jira/browse/SOLR-2307
>             Project: Solr
>          Issue Type: Bug
>          Components: Response Writers
>    Affects Versions: 1.3, 1.4.1
>            Reporter: Antonio Verni
>            Assignee: Hoss Man
>            Priority: Minor
>             Fix For: 3.1, 4.0
>
>         Attachments: PHPSerializedResponseWriter.java.patch, PHPSerializedResponseWriter.java.patch,
PHPSerializedResponseWriter.java.patch, SOLR-2307.patch, TestPHPSerializedResponseWriter.java,
TestPHPSerializedResponseWriter.java
>
>
> Solr throws a "java.lang.IllegalArgumentException: Map size must not be negative exception"
when using the PHP Serialized response writer with sharded queries. 
> To reproduce the issue start your preferred example and try the following query:
> http://localhost:8983/solr/select/?q=*:*&wt=phps&shards=localhost:8983/solr,localhost:8983/solr
> It is caused by the JSONWriter implementation of writeSolrDocumentList and writeSolrDocument.
Overriding this two methods in the PHPSerializedResponseWriter to handle the SolrDocument
size seems to solve the issue.
> Attached my patch made against trunk rev 1055588.
> cheers,
> Antonio

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message