You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Antonio Verni (JIRA)" <ji...@apache.org> on 2011/01/05 20:55:46 UTC
[jira] Created: (SOLR-2307) PHPSerialized fails with sharded
queries
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.4.1, 1.3
Reporter: Antonio Verni
Priority: Minor
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
[jira] Updated: (SOLR-2307) PHPSerialized fails with sharded
queries
Posted by "Antonio Verni (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antonio Verni updated SOLR-2307:
--------------------------------
Attachment: TestPHPSerializedResponseWriter.java
PHPSerializedResponseWriter.java.patch
The previous implementation was not respecting the returnField parameter. Changes reflected in test code
> 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
> Priority: Minor
> Attachments: PHPSerializedResponseWriter.java.patch, PHPSerializedResponseWriter.java.patch, PHPSerializedResponseWriter.java.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
[jira] Updated: (SOLR-2307) PHPSerialized fails with sharded
queries
Posted by "Antonio Verni (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antonio Verni updated SOLR-2307:
--------------------------------
Comment: was deleted
(was: The previous implementation was not respecting the returnField parameter. Changes reflected in test code)
> 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
> Priority: Minor
> Attachments: PHPSerializedResponseWriter.java.patch, PHPSerializedResponseWriter.java.patch, PHPSerializedResponseWriter.java.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
[jira] Commented: (SOLR-2307) PHPSerialized fails with sharded
queries
Posted by "Ahmet Arslan (JIRA)" <ji...@apache.org>.
[ 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
[jira] Commented: (SOLR-2307) PHPSerialized fails with sharded
queries
Posted by "Ahmet Arslan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12979683#action_12979683 ]
Ahmet Arslan commented on SOLR-2307:
------------------------------------
This patch solves this problem http://search-lucene.com/m/lr7t42uWp4g , right?
> 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
> Priority: Minor
> Attachments: PHPSerializedResponseWriter.java.patch, PHPSerializedResponseWriter.java.patch, 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
[jira] Resolved: (SOLR-2307) PHPSerialized fails with sharded
queries
Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man resolved SOLR-2307.
----------------------------
Resolution: Fixed
i think we're all good here now
> 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
[jira] Commented: (SOLR-2307) PHPSerialized fails with sharded
queries
Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12983477#action_12983477 ]
Hoss Man commented on SOLR-2307:
--------------------------------
more fixes because the test itself also uses a HashMap that i didn't notice...
Committed revision 1060645. trunk
Committed revision 1060646. 3x
> 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
[jira] Commented: (SOLR-2307) PHPSerialized fails with sharded
queries
Posted by "Ahmet Arslan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12979737#action_12979737 ]
Ahmet Arslan commented on SOLR-2307:
------------------------------------
By the way, I think you should call req.close(); at the end the test.
> 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
> Priority: Minor
> Attachments: PHPSerializedResponseWriter.java.patch, PHPSerializedResponseWriter.java.patch, PHPSerializedResponseWriter.java.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
[jira] Commented: (SOLR-2307) PHPSerialized fails with sharded
queries
Posted by "Antonio Verni (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12979715#action_12979715 ]
Antonio Verni commented on SOLR-2307:
-------------------------------------
yes, exactly, and it could also fix SOLR-2278 but I didn't tested it.
As I discovered reading your SOLR-2291, the current patch I uploaded does not respect returnFields parameter. I've fixed it but I need to upload a third version of the patch (so please, sorry the mess) and a new test file.
In detail, to fix the issue I've added a numeric index to the "response" array of documents in writeSolrDocumentList as requested by the php serialization protocol and handled the field count in writeSolrDocument.
> 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
> Priority: Minor
> Attachments: PHPSerializedResponseWriter.java.patch, PHPSerializedResponseWriter.java.patch, 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
[jira] Assigned: (SOLR-2307) PHPSerialized fails with sharded
queries
Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man reassigned SOLR-2307:
------------------------------
Assignee: Hoss Man
> 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
> Attachments: PHPSerializedResponseWriter.java.patch, PHPSerializedResponseWriter.java.patch, PHPSerializedResponseWriter.java.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
[jira] Updated: (SOLR-2307) PHPSerialized fails with sharded
queries
Posted by "Antonio Verni (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antonio Verni updated SOLR-2307:
--------------------------------
Attachment: PHPSerializedResponseWriter.java.patch
> 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
> Priority: Minor
> Attachments: PHPSerializedResponseWriter.java.patch
>
>
> 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
[jira] Updated: (SOLR-2307) PHPSerialized fails with sharded
queries
Posted by "Antonio Verni (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antonio Verni updated SOLR-2307:
--------------------------------
Attachment: TestPHPSerializedResponseWriter.java
PHPSerializedResponseWriter.java.patch
Patch update to handle single values in multi valued fields. Added a junit test case just to test the issue.
> 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
> Priority: Minor
> Attachments: PHPSerializedResponseWriter.java.patch, PHPSerializedResponseWriter.java.patch, 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
[jira] Resolved: (SOLR-2307) PHPSerialized fails with sharded
queries
Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man resolved SOLR-2307.
----------------------------
Resolution: Fixed
Fix Version/s: 4.0
3.1
Committed revision 1060585. -- trunk
Committed revision 1060589. - 3x.
thanks again for the great patch Antonio
> 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
[jira] Updated: (SOLR-2307) PHPSerialized fails with sharded
queries
Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man updated SOLR-2307:
---------------------------
Attachment: SOLR-2307.patch
path looks good -- includes a test that fails (horrificly) w/o patch applied.
new attachment just merges the Antonio's two files (FYI: Antonio, if you do an "svn add" to your local copy, then "svn diff" will generate a unified patch even for new files); moves some existing PHPS test out of JSONWriterTest into the new test class, and adds the request closing that Ahmet mentioned.
committing soon
> 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
> 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
[jira] Commented: (SOLR-2307) PHPSerialized fails with sharded
queries
Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12983468#action_12983468 ]
Hoss Man commented on SOLR-2307:
--------------------------------
code/test fixes to use predictable field order...
Committed revision 1060641. - trunk
Committed revision 1060642. - 3x
> 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
[jira] Reopened: (SOLR-2307) PHPSerialized fails with sharded
queries
Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man reopened SOLR-2307:
----------------------------
Uwe noticed a bug on some VMs ... the test assumes consistent iteration order of fields but that is not guaranteed by the code ... reopening to fix (should be straight forward)
> 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