You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Willnauer (Updated) (JIRA)" <ji...@apache.org> on 2011/11/27 13:20:40 UTC
[jira] [Updated] (LUCENE-3600) BlockJoinQuery advance fails on an
assert in case of a single parent with child segment
[ https://issues.apache.org/jira/browse/LUCENE-3600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Willnauer updated LUCENE-3600:
------------------------------------
Affects Version/s: 4.0
Fix Version/s: 4.0
3.6
added fixVersion 3.6 & 4.0
> BlockJoinQuery advance fails on an assert in case of a single parent with child segment
> ---------------------------------------------------------------------------------------
>
> Key: LUCENE-3600
> URL: https://issues.apache.org/jira/browse/LUCENE-3600
> Project: Lucene - Java
> Issue Type: Bug
> Components: modules/join
> Affects Versions: 3.5, 4.0
> Reporter: Shay Banon
> Fix For: 3.6, 4.0
>
>
> The BlockJoinQuery will fail on an assert when advance in called on a segment with a single parent with a child. The call to parentBits.prevSetBit(parentTarget - 1) will cause -1 to be returned, and the assert will fail, though its valid. Just removing the assert fixes the problem, since nextDoc will handle it properly.
> Also, I don't understand the "assert parentTarget != 0;", with a comment of each parent must have one child. There isn't really a reason to add this constraint, as far as I can tell..., just call nextDoc in this case, no?
--
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