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

Running collStats command on mongos fails for time-series collection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 5.0.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      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

              Assignee:
              Unassigned Unassigned
              Reporter:
              julia.ruddy Julia Ruddy
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: