lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Sokolov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-3513) specifying 2147483647 for rows parameter causes AIOOBE
Date Wed, 06 Jun 2012 02:21:22 GMT

     [ https://issues.apache.org/jira/browse/SOLR-3513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mike Sokolov updated SOLR-3513:
-------------------------------

    Description: 
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)


  was:
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-2).  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)


    
> 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


Mime
View raw message