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

Shai Erera updated LUCENE-5246:
-------------------------------

    Attachment: LUCENE-5246.patch

Thanks for the comments Mike. I modified the test to do atLeast(100) on a 
global numUpdates counter, so that all threads do as many updates as the 
nightly test params say. Also, every thread commits on average every 20 updates 
and reopens every 10.

It's a good idea about SIPC.getUpdatesFiles -- changed to return unmodifiable 
map.

I gave luceneutil 400 iters on that test and it was happy. I think it's ready 
to commit.

> SegmentInfoPerCommit continues to list unneeded updatesFiles
> ------------------------------------------------------------
>
>                 Key: LUCENE-5246
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5246
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/index
>            Reporter: Shai Erera
>            Assignee: Shai Erera
>         Attachments: LUCENE-5246.patch, LUCENE-5246.patch
>
>
> SegmentInfoPerCommit continues to list updates files even if they are 
> unneeded anymore. For example, if you update the values of documents of field 
> 'f', it creates a gen'd .fnm (FieldInfos) file. If you commit/reopen and 
> update the field again (maybe now a different set of documents), it creates 
> another gen'd .fnm, but continues to list both gens, even though only the 
> latest one is needed.
> To solve this, SIPC would need to know then dvGen of each FieldInfo, so that 
> it can correctly list only the updates files that are truly needed. I'll work 
> on a testcase and fix.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to