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

collStats scale argument does not apply to maxSize

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.8.0-rc3
    • Fix Version/s: 2.8.0-rc4
    • Component/s: Diagnostics
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      Create a capped collection (or use the oplog as in the above example).

      Run collStats with and without a scale argument.

      See that maxSize is the same in both.

      Show
      Create a capped collection (or use the oplog as in the above example). Run collStats with and without a scale argument. See that maxSize is the same in both.

      Description

       db.runCommand({"collStats": "oplog.rs"})
      {
      	"ns" : "local.oplog.rs",
      	"count" : 1,
      	"size" : 88,
      	"avgObjSize" : 88,
      	"numExtents" : 1,
      	"storageSize" : 67108864,
      	"nindexes" : 0,
      	"lastExtentSize" : 67108864,
      	"paddingFactor" : 1,
      	"paddingFactorNote" : "paddingFactor is unused and unmaintained in 2.8. It remains hard coded to 1.0 for compatibility only.",
      	"userFlags" : 0,
      	"capped" : true,
      	"max" : NumberLong("9223372036854775807"),
      	"maxSize" : 67108864,
      	"totalIndexSize" : 0,
      	"indexSizes" : {
      		
      	},
      	"ok" : 1
      }

      db.runCommand({"collStats": "oplog.rs", scale: 1024})
      {
      	"ns" : "local.oplog.rs",
      	"count" : 1,
      	"size" : 0,
      	"avgObjSize" : 88,
      	"numExtents" : 1,
      	"storageSize" : 65536,
      	"nindexes" : 0,
      	"lastExtentSize" : 65536,
      	"paddingFactor" : 1,
      	"paddingFactorNote" : "paddingFactor is unused and unmaintained in 2.8. It remains hard coded to 1.0 for compatibility only.",
      	"userFlags" : 0,
      	"capped" : true,
      	"max" : NumberLong("9223372036854775807"),
      	"maxSize" : 67108864,
      	"totalIndexSize" : 0,
      	"indexSizes" : {
      		
      	},
      	"ok" : 1
      }

        Attachments

          Activity

            People

            Assignee:
            milkie Eric Milkie
            Reporter:
            tim.olsen Timothy Olsen
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: