lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Sokolov (JIRA)" <>
Subject [jira] [Created] (SOLR-3513) specifying 2147483647 for rows parameter causes AIOOBE
Date Wed, 06 Jun 2012 01:57:22 GMT
Mike Sokolov created SOLR-3513:

             Summary: specifying 2147483647 for rows parameter causes AIOOBE
                 Key: SOLR-3513
             Project: Solr
          Issue Type: Bug
          Components: Response Writers
    Affects Versions: 3.4
            Reporter: Mike Sokolov

A request such as:


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.response.XMLWriter$3.writeDocs(
        at org.apache.solr.response.XMLWriter.writeDocuments(
        at org.apache.solr.response.XMLWriter.writeDocList(
        at org.apache.solr.response.XMLWriter.writeVal(
        at org.apache.solr.response.XMLWriter.writeResponse(
        at org.apache.solr.response.XMLResponseWriter.write(XMLResponseWriter.ja
        at org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatch
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilte

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message