lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Harris (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-6029) CollapsingQParserPlugin throws ArrayIndexOutOfBoundsException if elevated doc has been deleted from a segment
Date Tue, 29 Apr 2014 00:26:22 GMT

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

Greg Harris updated SOLR-6029:
------------------------------

    Attachment: SOLR-6029.patch

Patch with test for 4.7

> 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
>            Priority: Minor
>         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


Mime
View raw message