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

Running collStats command on mongos fails for time-series collection

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 5.0.0
    • Component/s: 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"})

      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. 

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

              Created:
              Updated:
              Resolved: