On Tue, May 8, 2012 at 12:31 AM, S Eslamian wrote:
> So if my program interrupts, the lock files in the indexes will be released
> in the next run. hoom?
If you use NativeFSLockFactory (which is the default for
NIOFSDirectory) then, yes, the lock is always released by the OS when
the process exi
So if my program interrupts, the lock files in the indexes will be released
in the next run. hoom?
That's so good. Thank you Mr.McCandless for your help.
On Mon, May 7, 2012 at 5:04 PM, Michael McCandless <
luc...@mikemccandless.com> wrote:
> On Mon, May 7, 2012 at 7:19 AM, S Eslamian wrote:
>
On Mon, May 7, 2012 at 7:19 AM, S Eslamian wrote:
> hmm... , What is a leftover lock file?
>
> You know I debug my code, befor index folder has lock file, till line 7.
> Then I close the program, like in a real run an interrupt has happened.
How do you close it? Just kill the process? That is w
> You know I debug my code, befor index folder has lock file, till line 7.
> > Then I close the program, like in a real run an interrupt has happened.
> > Next I debug the program again with that index folder which has the lock
> > file and it shouldn't passes the if claus
s lock file, till line 7.
> Then I close the program, like in a real run an interrupt has happened.
> Next I debug the program again with that index folder which has the lock
> file and it shouldn't passes the if clause. But it passes.
>
> This is my sample code:
>
> 1.try{
>
he if clause. But it passes.
This is my sample code:
1.try{
2. if(!(IndexWriter.isLock(NIOFSDirectory.open("dstAddr"{
3.IndexReader ir =
IndexReader.open(NIOFSDirectory.open("srcAddr"),true);
4.IndexWriterConfig iwc = new
IndexWriterConfig(Ve
> Yes, I'm sure. I debug the code, and look at the files in the index folder,
> it has a write.lock file before this line of code:
> if (!(IndexWriter.isLock(NIOFSDirectory.open("fileAddr"{
> //do something
> }
>
> and after passing this line, index folder do
Yes, I'm sure. I debug the code, and look at the files in the index folder,
it has a write.lock file before this line of code:
if (!(IndexWriter.isLock(NIOFSDirectory.open("fileAddr"{
//do something
}
and after passing this line, index folder does not contain write.lock fil
wrote:
> Hi all
> While I am using IndexWriter.isLock(), this method unlocks the index and
> returns false.
> Can anyone tell me why?
-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional comm
Hi all
While I am using IndexWriter.isLock(), this method unlocks the index and
returns false.
Can anyone tell me why?
10 matches
Mail list logo