You're right, this is a bug. I have created a JIRA case for the bug:
https://jira.mongodb.org/browse/SERVER-3625.
Thanks for reporting this!
On Aug 16, 12:20 pm, Denis <
dnandr...@gmail.com> wrote:
> MongoDB v1.8.2
> It looks like a bug. It happens in case when a document is updated
> with new size (e.g. re-sized by new fields and their values) and there
> is no free space on disk to relocate the document with new size. That
> is it looks like old document is removed but new one cannot be located
> because of lack of free space on disk.
>
> These are my actions:
>
> // Do request
>
> > db.test.find({_id:7421167},{Tags:1})
>
> // Get the document
> { "_id" : 7421167 }
>
> //Update the document with new field
>
> > db.test.update({_id:7421167},{$set:{Tags:["LastUpdated","Visible","LastUpda tedBy","2011-08-01T16:24:36.497Z","2011-08-01T16:24:36.497Z"]}})