You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/05/06 20:13:15 UTC

[jira] [Commented] (SOLR-6029) CollapsingQParserPlugin throws ArrayIndexOutOfBoundsException if elevated doc has been deleted from a segment

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

ASF subversion and git services commented on SOLR-6029:
-------------------------------------------------------

Commit 1592821 from hossman@apache.org in branch 'dev/branches/lucene_solr_4_8'
[ https://svn.apache.org/r1592821 ]

Merge back several "low hanging" bug fixes into the 4.8 branch...
SOLR-6029: r1590867
SOLR-6030: r1591555
SOLR-6037: r1591800
SOLR-6023: r1592195
SOLR-5090: r1592591
SOLR-6039: r1592605
SOLR-5993: r1588415
SOLR-5904: r1587702

> CollapsingQParserPlugin throws ArrayIndexOutOfBoundsException if elevated doc has been deleted from a segment
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-6029
>                 URL: https://issues.apache.org/jira/browse/SOLR-6029
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>    Affects Versions: 4.7.1
>            Reporter: Greg Harris
>            Assignee: Joel Bernstein
>            Priority: Minor
>             Fix For: 4.8.1, 4.9
>
>         Attachments: SOLR-6029.patch
>
>
> CollapsingQParserPlugin misidentifies if a document is not found in a segment if the docid previously existed in a segment ie.... was deleted. 
> Relevant code bit from CollapsingQParserPlugin needs to be changed from:
> -if(doc != -1) {
> +if((doc != -1) && (doc != DocsEnum.NO_MORE_DOCS)) {
> What happens is if the doc is not found the returned value is DocsEnum.NO_MORE_DOCS. This would then get set in the fq bitSet array as the doc location causing an ArrayIndexOutOfBoundsException as the array is only as big as maxDocs. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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