lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Commit Tag Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4790) FieldCache.getDocTermOrds back to the future bug
Date Thu, 21 Feb 2013 02:44:13 GMT

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

Commit Tag Bot commented on LUCENE-4790:
----------------------------------------

[branch_4x commit] Robert Muir
http://svn.apache.org/viewvc?view=revision&revision=1448490

LUCENE-4790: nuke test workaround now that bug is fixed

                
> FieldCache.getDocTermOrds back to the future bug
> ------------------------------------------------
>
>                 Key: LUCENE-4790
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4790
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>             Fix For: 4.2, 5.0
>
>         Attachments: LUCENE-4790.patch
>
>
> Found while working on LUCENE-4765:
> FieldCache.getDocTermOrds unsafely "bakes in" liveDocs into its structure.
> This means in cases if you have readers at two points in time (r1, r2), and you happen
to call getDocTermOrds first on r2, then call it on r1, the results will be incorrect.
> Simple fix is to make DocTermOrds uninvert take liveDocs explicitly: FieldCacheImpl always
passes null, Solr's UninvertedField just keeps doing what its doing today (since its a top-level
reader, and cached somewhere else).
> Also DocTermOrds had a telescoping ctor that was uninverting twice. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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