[SERVER-21530] inMemory storage engine should report the capped size as storage size Created: 18/Nov/15  Updated: 17/Apr/16  Resolved: 11/Dec/15

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 3.2.0-rc3
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Charlie Swanson Assignee: Charlie Swanson
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Steps To Reproduce:

apply this diff:

diff --git a/jstests/concurrency/fsm_all.js b/jstests/concurrency/fsm_all.js
index c174342..175e137 100644
--- a/jstests/concurrency/fsm_all.js
+++ b/jstests/concurrency/fsm_all.js
@@ -8,5 +8,5 @@ var blacklist = [
 ].map(function(file) { return dir + '/' + file; });
 
 runWorkloadsSerially(ls(dir).filter(function(file) {
-    return !Array.contains(blacklist, file);
+    return !Array.contains(blacklist, file) && file.indexOf("convert_to_capped_collection.js") !== -1;
 }));

then run

python buildscripts/resmoke.py --suites=concurrency --storageEngine=inMemory

Participants:

 Description   

The inMemory storage engine reports the storage size to be equivalent to the data size. This causes the convert_to_capped_collection fsm workload to fail, because it expects the storage size to be the capped size, which should be rounded up to a multiple of 256.



 Comments   
Comment by Charlie Swanson [ 11/Dec/15 ]

Decided to fix the test to use the max size of the capped collection, instead of the storage size.

Comment by Githook User [ 19/Nov/15 ]

Author:

{u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

Message: SERVER-21530: Pass cache size and canonical name explicitly to WiredTigerKVEngine

Similarly for the index and record store.
Branch: master
https://github.com/mongodb/mongo/commit/23245d6bb38a2a2fa2a4266a1527c82d8ca3736f

Comment by Githook User [ 19/Nov/15 ]

Author:

{u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

Message: SERVER-21530: Add option processing for inMemory storage engine
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/e4eb794f3c5e495d41d455a68bf1ee39f90ca6f2

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