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

Running collStats command on mongos fails for time-series collection

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 5.0.0
    • None
    • None
    • None
    • ALL
      1. Create a sharded cluster
      2. Create a time-series collection
      3. Connect to the mongos
      4. On the time-series collection, run the following command: db.runCommand({ collStats: "timeseries"})

    Description

      Running db.runCommand({ collStats: "timeseries"}) on a mongos for a time-series collection results in the following error: 

      {
      	"ok" : 0,
      	"errmsg" : "expected  to have a numeric type, but it is a missing",
      	"code" : 13118,
      	"codeName" : "Location13118",
      	"$clusterTime" : {
      		"clusterTime" : Timestamp(1621607006, 1),
      		"signature" : {
      			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
      			"keyId" : NumberLong(0)
      		}
      	},
      	"operationTime" : Timestamp(1621607002, 1)
      } 

      The InTel team depends on this command for Data Explorer to work properly so it is important that this behavior is uniform across deployment types. 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              julia.ruddy@mongodb.com Julia Ruddy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: