[SERVER-485] Shell shows ns corrupt on validate of empty collection Created: 14/Dec/09  Updated: 12/Jul/16  Resolved: 30/Dec/09

Status: Closed
Project: Core Server
Component/s: Stability
Affects Version/s: None
Fix Version/s: 1.3.0

Type: Bug Priority: Major - P3
Reporter: Bob T. Terminal Assignee: Dwight Merriman
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

64 bit linux server


Participants:

 Description   

Created new replica pair, determined master using shell db.$cmd.findOne(

{ismaster:1}

);, then from master created capped collection db.createCollection("abc",

{capped:true, size:4194304, max:25000000}

); and ran db.abc.validate(); last part of result shows that

ns corrupt, requires dbchk
",
"ok" : 1,
"valid" : false,
"lastExtentSize" : 4194560
}

if i add a record then everything is shown to be fine

deleted: n: 1 size: 4194308
nIndexes:0
",
"ok" : 1,
"valid" : true,
"lastExtentSize" : 4194560
}



 Comments   
Comment by auto [ 30/Dec/09 ]

Author:

{'name': 'Dwight', 'email': 'dmerriman@gmail.com'}

Message: SERVER-485 fix validate on capped collection
http://github.com/mongodb/mongo/commit/9f20ce7c030d50c40e912f150e71b708c70a9ac1

Comment by auto [ 15/Dec/09 ]

Author:

{'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: test for SERVER-485 (capped + validate) that doesn't work yet (commented out)
http://github.com/mongodb/mongo/commit/3231cd90b6f37154ab9402f79eb72f44df82c3ca

Comment by Eliot Horowitz (Inactive) [ 15/Dec/09 ]

see jstests/capped1.js

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