lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shay Banon (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-3600) BlockJoinQuery advance fails on an assert in case of a single parent with child segment
Date Sun, 27 Nov 2011 10:56:40 GMT
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
            Reporter: Shay Banon


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


Mime
View raw message