[SERVER-2502] createPrivateMap fails, leads to repeated multiple opens to same file Created: 09/Feb/11  Updated: 12/Jul/16  Resolved: 22/Feb/11

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 1.7.5
Fix Version/s: 1.8.0-rc0

Type: Bug Priority: Minor - P4
Reporter: Scott Hernandez (Inactive) Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-2500 --dur fails with createPrivateMap on ... Closed
Operating System: Windows
Participants:

 Description   

When running with --dur (see SERVER-2500) there is a primary error and then the second error is the repeated after the first.

> use market_data
switched to db market_data
> show tables
Tue Feb 08 21:00:08 uncaught exception: error: { "$err" : "MongoFile : multiple opens of same filename", "code" : 13617

...
Tue Feb 08 20:59:24 [conn1] checking size file /data/db/market_data.ns
Accessing: market_data for the first time
Tue Feb 08 20:59:24 [conn1] createPrivateMap failed /data/db/market_data.5 errno:1455 The paging file is too small for this operation to complete.
Tue Feb 08 20:59:24 [conn1] Assertion: 13636:createPrivateMap failed (look in log for error)
Tue Feb 08 20:59:24 [conn1] query admin.$cmd ntoreturn:1 command:

{ listDatabases: 1.0 }

reslen:134 153ms
Tue Feb 08 20:59:24 [conn1] query: admin.$cmd

{ replSetGetStatus: 1 }

Tue Feb 08 20:59:24 [conn1] run command admin.$cmd

{ replSetGetStatus: 1 }

Tue Feb 08 20:59:24 [conn1] command:

{ replSetGetStatus: 1 }

...
Tue Feb 08 21:00:08 [conn1] query: market_data.system.namespaces{}
Tue Feb 08 21:00:08 [conn1] Accessing: market_data for the first time
Tue Feb 08 21:00:08 [conn1] Assertion: 13617:MongoFile : multiple opens of same filename
Tue Feb 08 21:00:08 [conn1] assertion 13617 MongoFile : multiple opens of same filename ns:market_data.system.namespaces query:{}
Tue Feb 08 21:00:08 [conn1] query market_data.system.namespaces exception 0ms
Tue Feb 08 21:00:08 [conn1] query: admin.$cmd

{ replSetGetStatus: 1 }

 Comments   
Comment by Mathias Stearn [ 22/Feb/11 ]

I was able to reproduce with 1.7.6, and I can confirm that it is fixed as of the latest nightly build

Comment by Scott Hernandez (Inactive) [ 15/Feb/11 ]

> show dbs
Tue Feb 15 00:00:28 uncaught exception: listDatabases failed:{
"errmsg" : "exception: createPrivateMap failed (look in log for error)",
"code" : 13636,
"ok" : 0
}

Mon Feb 14 23:28:06 [initandlisten] db version v1.7.6, pdfile version 4.5
Mon Feb 14 23:28:06 [initandlisten] git version: 5909aa6962bebe24f7cd65b924053a5cf70b83d3
Mon Feb 14 23:28:06 [initandlisten] sys info: windows (6, 1, 7600, 2, '') BOOST_LIB_VERSION=1_42
Mon Feb 14 23:28:06 [initandlisten] journal dir=/data/db/journal
Mon Feb 14 23:28:06 [initandlisten] recover : no journal files present, no recovery needed
....
Tue Feb 15 00:00:28 [conn1] createPrivateMap failed /data/db/market_data.4 errno:1455 The paging file is too small for this operation to complete.
Tue Feb 15 00:00:28 [conn1] Assertion: 13636:createPrivateMap failed (look in log for error)
Tue Feb 15 00:00:28 [conn1] query admin.$cmd ntoreturn:1 command:

{ listDatabases: 1.0 }

reslen:134 1291ms

Still happening in 1.7.6.

Comment by auto [ 09/Feb/11 ]

Author:

{u'login': u'dwight', u'name': u'dwight', u'email': u'dwight@10gen.com'}

Message: SERVER-2502
https://github.com/mongodb/mongo/commit/f6f3cf1bf631a9632a543f8996dc0e2e5fa50c57

Comment by auto [ 09/Feb/11 ]

Author:

{u'login': u'dwight', u'name': u'dwight', u'email': u'dwight@10gen.com'}

Message: attempt to fix SERVER-2502
https://github.com/mongodb/mongo/commit/2b1c61b92ab2e9b7d4da1c1c9f2e1e23ab8034a1

Comment by Dwight Merriman [ 09/Feb/11 ]

mathias can you investigate why this happens. i will take 2500. but this is likely a general problem. perhaps temp code to force a failure in open to reproduce.

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