Re: OverlappingFileLockException when optimizing large index

2011-09-22 Thread Paul Taylor
On 22/09/2011 13:57, Paul Taylor wrote: On 22/09/2011 11:56, Paul Taylor wrote: Id made just a few changes to my code to remove deprecations that ocurred when I upgraded to Lucene 3.1, all tests work fine but when I tried to build a real index it gives this error during optimization stage Ex

Re: OverlappingFileLockException when optimizing large index

2011-09-22 Thread Paul Taylor
On 22/09/2011 13:53, Michael McCandless wrote: The OverlappingLockExc sounds like somehow you are trying to open two writers at once on the same index. Maybe try to boil down your code to a smaller test case? Hi Mike Just missed your reply please see my latest reply, I am opening two writers

Re: OverlappingFileLockException when optimizing large index

2011-09-22 Thread Paul Taylor
On 22/09/2011 11:56, Paul Taylor wrote: Id made just a few changes to my code to remove deprecations that ocurred when I upgraded to Lucene 3.1, all tests work fine but when I tried to build a real index it gives this error during optimization stage Exception in thread "main" java.nio.channels

Re: OverlappingFileLockException when optimizing large index

2011-09-22 Thread Michael McCandless
The OverlappingLockExc sounds like somehow you are trying to open two writers at once on the same index. Maybe try to boil down your code to a smaller test case? What OS/filesystem? It's odd to get the "File too large" error. I do wish Lucene would somehow decorate IOEs with the filename.

OverlappingFileLockException when optimizing large index

2011-09-22 Thread Paul Taylor
Id made just a few changes to my code to remove deprecations that ocurred when I upgraded to Lucene 3.1, all tests work fine but when I tried to build a real index it gives this error during optimization stage Exception in thread "main" java.nio.channels.OverlappingFileLockException at sun