You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2012/06/06 08:34:23 UTC

[jira] [Commented] (SOLR-3513) specifying 2147483647 for rows parameter causes AIOOBE

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

Tommaso Teofili commented on SOLR-3513:
---------------------------------------

good catch, tested also on trunk, specifying rows=2147483647 results in ArrayIndexOutOfBoundsException while with rows>= 2147483648 NumberFormatException is thrown; it works ok with rows < 2147483647
                
> specifying 2147483647 for rows parameter causes AIOOBE
> ------------------------------------------------------
>
>                 Key: SOLR-3513
>                 URL: https://issues.apache.org/jira/browse/SOLR-3513
>             Project: Solr
>          Issue Type: Bug
>          Components: Response Writers
>    Affects Versions: 3.4
>            Reporter: Mike Sokolov
>
> A request such as:
> /select?version=2.2&q=*%3A*&fq=*%3A*&start=1&rows=2147483647&fl=uri 
> causes an AIOOBE.  This happens when rows is MAX_INT or MAX_INT-1 (I suspect anything greater than MAX_INT-start-1).  It happens with both XML and BinaryResponseWriter.  Doesn't seem to happen with embedded solr.
> I don't know whether this may have been fixed since 3.4 - sorry, but I thought it was better to report than not to report it, even so.
> Here's a typical stack trace:
> java.lang.ArrayIndexOutOfBoundsException: 7183
>         at org.apache.solr.search.DocSlice$1.nextDoc(DocSlice.java:117)
>         at org.apache.solr.response.XMLWriter$3.writeDocs(XMLWriter.java:543)
>         at org.apache.solr.response.XMLWriter.writeDocuments(XMLWriter.java:482)
>         at org.apache.solr.response.XMLWriter.writeDocList(XMLWriter.java:519)
>         at org.apache.solr.response.XMLWriter.writeVal(XMLWriter.java:582)
>         at org.apache.solr.response.XMLWriter.writeResponse(XMLWriter.java:131)
>         at org.apache.solr.response.XMLResponseWriter.write(XMLResponseWriter.ja
> va:35)
>         at org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatch
> Filter.java:343)
>         at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilte
> r.java:265)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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