"Bad file descriptor" error
599519Sep 24 2007 — edited Feb 17 2009Hello,
I upgraded C version of Berkeley DB from 4.5.20 to 4.6.19.
I ran previous version for approximatelly a year w/o any troubles. But with new version I sometimes starting to recieve errors (after a day or two of operating), mostly "Bad file descriptor", but sometimes also others:
seek: 46426: (0 * 0) + 46426: Bad file descriptor
txn_checkpoint: failed to flush the buffer cache: Bad file descriptor
checkpoint error: Bad file descriptor
seek: 46426: (0 * 0) + 46426: Bad file descriptor
seek: 46426: (0 * 0) + 46426: Illegal seek
After receiving at least one such error all transactions failing. I do not sure is it related to Berkeley DB version or some error in software, but these errors started appear after Berkeley DB upgrade (also server changed from Ubuntu to Debian).
Is it possible that something wrong with hard drives or may be it can be some software error, where some part closes some file that is being used by BDB.
But first, what can be the reasons of such call in BDB internally?
Thanks in advance.