[
https://issues.apache.org/jira/browse/LUCENE-3794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shai Erera updated LUCENE-3794:
-------------------------------
Attachment: LUCENE-3794.patch
Patch fixes the bug + adds a couple of test cases to ensure the correct
behavior.
> DirectoryTaxonomyWriter can lose the INDEX_CREATE_TIME property, causing
> DirTaxoReader.refresh() to falsely succeed (or fail)
> -----------------------------------------------------------------------------------------------------------------------------
>
> Key: LUCENE-3794
> URL: https://issues.apache.org/jira/browse/LUCENE-3794
> Project: Lucene - Java
> Issue Type: Bug
> Components: modules/facet
> Reporter: Shai Erera
> Assignee: Shai Erera
> Fix For: 3.6, 4.0
>
> Attachments: LUCENE-3794.patch
>
>
> DirTaxoWriter sets createTime to null after it put it in the commit data
> once. But that's wrong because if one calls commit(Map<>) twice, the second
> time doesn't record the creation time. Also, in the ctor, if an index exists
> and OpenMode is not CREATE, the creation time property is not read.
> I wrote a couple of unit tests that assert this, and modified DirTaxoWriter
> to always record the creation time (in every commit) -- that's the only safe
> way.
> Will upload a patch shortly.
--
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: [email protected]
For additional commands, e-mail: [email protected]