[Xapian-discuss] "Error reading block xxx: got end of file"

Eric B. Ridge ebr@tcdi.com
Wed, 09 Jun 2004 18:44:37 -0400


On 6/7/04 9:44 PM, "Olly Betts" <olly@survex.com> wrote:

> I wonder if this is related to the problem Arjen has noticed.  Both seem
> to be tickled by replacing documents...

Been digging through our logs more carefully today, discovered this
XapianError:

org.xapian.errors.DatabaseError: Error writing block: Bad file descriptor
  at org.xapian.XapianJNI.writabledatabase_repalce_document(Native Method)
  at org.xapian.WritableDatabase.replaceDocument(WritableDatabase.java:67)

It seems once this occurs, we constantly get the "got end of file" errors
until we restart our process.

Our current train of thought is that we're just running out of file handles.
So we're going to play with "ulimit".  Also, we're going to try trapping
this "Bad file descriptor" error and re-open our WritableDatabase.

I'm hoping the "ulimit" thing will just take care of the problem.  Once we
have a few days of usage with this, I'll send an update.

eric