Marvin Humphrey wrote on 1/30/13 5:20 PM: > On Wed, Jan 30, 2013 at 12:44 PM, Peter Karman <[email protected]> wrote: >> Using Lucy 0.3.2, we periodically get this error: >> >> Couldn't get deletion lock lucy_PolyReader_do_open at >> core/Lucy/Index/PolyReader.c line 274 >> >> when trying to open a PolySearcher. >> >> Under what circumstances should I expect to see such an error? > > I believe you must be supplying the `manager` argument to IndexReader#open, > presumably while building up the array of Searcher objects to pass to > PolySearcher#new. Unless the index is A) on NFS and B) being modified while > live searching is taking place, there's no reason to do that. Just omit the > `manager` parameter and it will no longer try to acquire the deletion lock. >
you are correct; I am passing in a manager that uses the hostname as described in Docs::FileLocking. both those cases are true: I am using NFS, and index is being modified while live searching is taking place. Should I be implementing a try/catch pattern on that open(), sleeping some time between attempts? Is that my only option? -- Peter Karman . http://peknet.com/ . [email protected]
