Re: IndexWriter 2-phase commit usage

2009-02-24 Thread Michael McCandless
owse/LUCENE-1449 Cheers Mark - Original Message From: "fang...@emc.com" To: java-user@lucene.apache.org Sent: Tuesday, 24 February, 2009 9:49:34 Subject: RE: IndexWriter 2-phase commit usage The prepareCommit should do most real works, so the chance index2.commit() failure

Re: IndexWriter 2-phase commit usage

2009-02-24 Thread mark harwood
. See here for some discussion/Junit examples: https://issues.apache.org/jira/browse/LUCENE-1449 Cheers Mark - Original Message From: "fang...@emc.com" To: java-user@lucene.apache.org Sent: Tuesday, 24 February, 2009 9:49:34 Subject: RE: IndexWriter 2-phase commit

RE: IndexWriter 2-phase commit usage

2009-02-24 Thread Fang_Li
ction still fulfill ACID. -Original Message- From: An Hong [mailto:an.h...@i365.com] Sent: Tuesday, February 24, 2009 10:07 AM To: lucene-user Subject: IndexWriter 2-phase commit usage I'm having trouble applying IndexWriter 2-phase commit to make a transaction involving two

IndexWriter 2-phase commit usage

2009-02-23 Thread An Hong
I'm having trouble applying IndexWriter 2-phase commit to make a transaction involving two different indexes. The scenario, 1. Open index1 2. Open index2 3. Make change1 to index1 4. Make change2 to index2 5. index1.prepareCommit() successfully flushes 6. index2.prepareCommit() succe