[SERVER-2344] Capped collection of size one Created: 10/Jan/11  Updated: 17/Mar/11  Resolved: 11/Jan/11

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

Type: Bug Priority: Minor - P4
Reporter: Ryan Nitz Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Created using:

final BasicDBObject options = new BasicDBObject("capped", true);
options.put("size", 1);
db.createCollection("collectionName", options);



 Comments   
Comment by Ryan Nitz [ 11/Jan/11 ]

This is not clearly defined in the Javadoc. I interpreted it as number of documents in the collection. I'll update the javadoc for DB.createCollection(String name, DBObject o).

Comment by Eliot Horowitz (Inactive) [ 11/Jan/11 ]

See: http://www.mongodb.org/display/DOCS/Capped+Collections

Comment by Eliot Horowitz (Inactive) [ 11/Jan/11 ]

size is the size in bytes of the collection.

Comment by Ryan Nitz [ 10/Jan/11 ]

13:29:37 [conn109] couldn't make room for new record (len: 104) in capped ns mmsdb.currentVersion
Extent 0 (capExtent)
magic: 41424344 extent->ns: mmsdb.currentVersion
fr: null lr: null extent->len: 256
insert: couldn't alloc space fo 13:30:05 [conn102] CMD: drop mmsdb.currentVersion
13:30:14 [conn102] end connection 127.0.0.1:57975
13:30:15 [initandlisten] connection accepted from 127.0.0.1:59858 #110
13:30:21 [conn109] end connection 127.0.0.1:59857
13:30:21 [conn108] end connection 127.0.0.1:59853
13:30:23 [initandlisten] connection accepted from 127.0.0.1:59861 #111
13:30:41 [initandlisten] connection accepted from 127.0.0.1:59869 #112
13:30:41 [conn112] couldn't make room for new record (len: 104) in capped ns mmsdb.currentVersion
Extent 0 (capExtent)
magic: 41424344 extent->ns: mmsdb.currentVersion
fr: null lr: null extent->len: 256
insert: couldn't alloc space fo 13:55:51 [conn112] end connection 127.0.0.1:59869

Generated at Thu Feb 08 02:59:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.