[
https://issues.apache.org/jira/browse/LUCENE-3424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon Willnauer updated LUCENE-3424:
------------------------------------
Attachment: LUCENE-3424.patch
here is a first patch to add sequence ids to the IndexWriter. Add, Update and
Delete methods return a long sequence id which is incremented for each
operation. For updates and deletes the sequence ids introduce a small overhead
in the DeleteQueue since I have to add a long value to each item . However, for
addDocument I now have to add an empty Item in the queue to allow increasing
seq ids even when you add a document. Since those queue items are very short
living I think this is feasible.
if that is too much of an overhead we can also disable this by default via IWC
and make it optional, this is actually very straight forward.
reviews & comments are very appreciated.
> Return sequence ids from IW update/delete/add/commit to allow total ordering
> outside of IW
> ------------------------------------------------------------------------------------------
>
> Key: LUCENE-3424
> URL: https://issues.apache.org/jira/browse/LUCENE-3424
> Project: Lucene - Java
> Issue Type: Improvement
> Components: core/index
> Affects Versions: 4.0
> Reporter: Simon Willnauer
> Assignee: Simon Willnauer
> Fix For: 4.0
>
> Attachments: LUCENE-3424.patch
>
>
> Based on the discussion on the [mailing
> list|http://mail-archives.apache.org/mod_mbox/lucene-dev/201109.mbox/%3CCAAHmpki-h7LUZGCUX_rfFx=q5-YkLJei+piRG=oic8d1pnr...@mail.gmail.com%3E]
> IW should return sequence ids from update/delete/add and commit to allow
> ordering of events for consistent transaction logs and recovery.
--
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]