lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ning Li" <ning.li...@gmail.com>
Subject Re: [jira] Commented: (LUCENE-808) bufferDeleteTerm in IndexWriter might flush prematurely
Date Thu, 22 Feb 2007 02:15:53 GMT
On 2/21/07, Doron Cohen (JIRA) <jira@apache.org> wrote:
> Imagine the application and Lucene could talk, with the current
> implementation we could hear something like this: ...

However, there could be multiple threads updating the same index. For
example, thread 1 deletes the term "id:5" twice, thread 2 inserts a
document with "id:10". The following two are among the possible
execution sequences:
Sequence 1:
  thread 1 deletes "id:5"
  thread 1 deletes "id:5"
  thread 2 inserts document "id:10"
Sequence 2:
  thread 1 deletes "id:5"
  thread 2 inserts document "id:10"
  thread 1 deletes "id:5".

They should return the same numBufferedDeleteTerms, not different ones.

Ning

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


Mime
View raw message