Too many rows in file_on
brad at danga.com
Thu Mar 8 18:46:07 UTC 2007
Cleaning my mogile inbox, prepping for a release, and I'm unable to
reproduce this in svn 760.... I'm staggering my closes, having clients
writing the same key and randomly closing at some point in the future, and
I never seen orphaned file_on rows.
So I think this was fixed? Or I'm not triggering it properly.
If you find this is still happening in svn 760+, let me know and I'll look
into it again. For now I'll assume this has been fixed.
On Thu, 7 Dec 2006, Andreas J. Koenig wrote:
> >>>>> On Thu, 7 Dec 2006 09:10:10 +0000 (UTC), Brad Fitzpatrick <brad at danga.com> said:
> > Interesting. This needs to get fixed. Not urgent, but annoying.
> > If you know why/how this happens, let me know, otherwise I'll look around
> > and try to find it.
> > Thanks for the info!
> It's apparently happening when many clients write the same dkey
> simultaneously. Mogilefs seems to allocate a new fid to this dkey on
> every upload and doesn't keep track for cleanup. We had a bug that
> erroneously sent the same file too frequently to mogile. We fixed the
> bug yesterday and since then the effect has disappeared.
> In the end we must be grateful to mogile that it exhibited the bug to
> us. If mogile were behaving correctly, we would not have noticed that
> something weird was going on:) We would only notice that the fids were
> skyrocketing while the number of files is pretty constant.
More information about the mogilefs