You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2010/04/06 20:37:33 UTC

[jira] Reopened: (LUCENE-1976) isCurrent() and getVersion() on an NRT reader are broken

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

Michael McCandless reopened LUCENE-1976:
----------------------------------------


Reopening to fix on 3.1 after flex lands...

> isCurrent() and getVersion() on an NRT reader are broken
> --------------------------------------------------------
>
>                 Key: LUCENE-1976
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1976
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.9
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 2.9.1, 3.0, 3.1
>
>         Attachments: LUCENE-1976.patch
>
>
> Right now isCurrent() will always return true for an NRT reader and getVersion() will always return the version of the last commit.  This is because the NRT reader holds the live segmentInfos.
> I think isCurrent() should return "false" when any further changes have occurred with the writer, else true.   This is actually fairly easy to determine, since the writer tracks how many docs & deletions are buffered in RAM and these counters only increase with each change.
> getVersion should return the version as of when the reader was created.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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