lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ning Li (JIRA)" <>
Subject [jira] Commented: (LUCENE-938) I/O exceptions can cause loss of buffered deletes
Date Thu, 12 Jul 2007 21:47:04 GMT


Ning Li commented on LUCENE-938:

I didn't make myself clear. Let me try again. The patch includes two parts of changes to IndexWriter:
one adds localNumBufferedDeleteTerms and localBufferedDeleteTerms and uses them in startTransaction()
and rollbackTransaction(); the other fixes loss of buffered deletes in flush() (and applyDeletes()
which is used by flush()).

The second part is good and that's where you had the comment on cloning.

I was referring to the first part. In startTransaction(), "localBufferedDeleteTerms = bufferedDeleteTerms"
reference-copies bufferedDeleteTerms. Then more delete terms are buffered into bufferedDeleteTerms...
so localBufferedDeleteTerms would have the delete terms buffered between startTransaction()
and the first flush()... 

> I/O exceptions can cause loss of buffered deletes
> -------------------------------------------------
>                 Key: LUCENE-938
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Steven Parkes
>            Assignee: Steven Parkes
>             Fix For: 2.3
>         Attachments: LUCENE-938.take2.patch, LUCENE-938.txt, LUCENE-938.txt
> Some I/O exceptions that result in segmentInfos rollback operations can cause buffered
deletes that existed before the rollback creation point to be incorrectly lost when the IOException
triggers a rollback.

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:
For additional commands, e-mail:

View raw message