[SERVER-2878] exception: assertion util/mmap.cpp:167 Created: 31/Mar/11  Updated: 21/Oct/11  Resolved: 21/Oct/11

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 1.8.0
Fix Version/s: None

Type: Bug Priority: Critical - P2
Reporter: Oliver Otzen Assignee: Mathias Stearn
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux solv078 2.6.18-194.17.1.0.1.el5 #1 SMP Wed Sep 29 15:57:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux


Attachments: PNG File Screen Shot 2011-09-05 at 1.26.35 PM.png     PNG File Screen Shot 2011-09-05 at 1.26.35 PM.png     Text File mongod.log    
Operating System: Linux
Participants:

 Description   

After inserting a huge file via GridFS (500MB) and dropping the database after, it is impossible to create a new collection in the database. the command fails with the following error:
"errmsg" : "exception: assertion util/mmap.cpp:167"

Here ist the full shell copy:

MongoDB shell version: 1.8.0
connecting to: db.qa.ep2.hypoport.local:27001/test
ep2:PRIMARY> use test
switched to db test
ep2:PRIMARY> db.createCollection("foo")
{
"errmsg" : "exception: assertion util/mmap.cpp:167",
"code" : 0,
"ok" : 0
}



 Comments   
Comment by Mathias Stearn [ 06/Sep/11 ]

The issue here is that you ran out of disk space. We handle this somewhat more gracefully in 2.0 now.

Mon Sep  5 12:39:34 [FileAllocator] allocating new datafile /mnt/db/mongo/rt01.4, filling with zeroes...
Mon Sep  5 12:39:34 [FileAllocator] FileAllocator: posix_fallocate failed: errno:28 No space left on device falling back
Mon Sep  5 12:39:42 [FileAllocator] error failed to allocate new file: /mnt/db/mongo/rt01.4 size: 1073741824 errno:28 No space left on device

Comment by Eliot Horowitz (Inactive) [ 06/Sep/11 ]

What version was this with?

Comment by Jeremy [ 05/Sep/11 ]

Had similar issue. Not sure how to re-open ticket. I ran the command of db.copyDatabase('rt01', 'vb2011', '10.220.xxx.xxx'); Primary finished ok. Secondary froze, although status is still 2.

Comment by Jeremy [ 05/Sep/11 ]

sync status.

Comment by Jeremy [ 05/Sep/11 ]

sync status.

Comment by Mathias Stearn [ 03/May/11 ]

Please reopen and attach the full log if you see this again

Comment by Mathias Stearn [ 04/Apr/11 ]

Do you still have the server log?

Comment by Eliot Horowitz (Inactive) [ 31/Mar/11 ]

Can you attach the full server log.

Generated at Thu Feb 08 03:01:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.