Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-16293

repairDatabase causes "size has to be a number"

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.1
    • Component/s: Admin, Shell
    • None
    • ALL

      We want to repair all databases on one of our repsets.
      But it fails for 2 of the databases.

      We are using a python script to call the repair command but the error also appears if we do it manually from the shell. It doesn't work on Primary nor Secondary. Other databases on the same servers succeed to be repaired.

      repset1:SECONDARY> db.repairDatabase()
      { "ok" : 0, "errmsg" : "size has to be a number", "code" : 2 }
      

      db.stats() from both databases

      repset1:SECONDARY> db.stats()
      {
      	"db" : "database",
      	"collections" : 9,
      	"objects" : 12210879,
      	"avgObjSize" : 251.01382398433398,
      	"dataSize" : 3065099432,
      	"storageSize" : 5368098816,
      	"numExtents" : 52,
      	"indexes" : 19,
      	"indexSize" : 6315052464,
      	"fileSize" : 64326991872,
      	"nsSizeMB" : 16,
      	"dataFileVersion" : {
      		"major" : 4,
      		"minor" : 5
      	},
      	"extentFreeList" : {
      		"num" : 37,
      		"totalSize" : 50291441344
      	},
      	"ok" : 1
      }
      
      repset1:SECONDARY> db.stats()
      {
      	"db" : "database2",
      	"collections" : 11,
      	"objects" : 3025743,
      	"avgObjSize" : 701.3263294337953,
      	"dataSize" : 2122033232,
      	"storageSize" : 2852605952,
      	"numExtents" : 81,
      	"indexes" : 41,
      	"indexSize" : 1849067808,
      	"fileSize" : 6373244928,
      	"nsSizeMB" : 16,
      	"dataFileVersion" : {
      		"major" : 4,
      		"minor" : 5
      	},
      	"extentFreeList" : {
      		"num" : 9,
      		"totalSize" : 39604224
      	},
      	"ok" : 1
      }
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            steffen Steffen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: