Slow query logs show wrong collection type for aggregations on untracked timeseries collections

    • Query Integration
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This error occurs for both viewful and viewless timeseries collections. The slow query log for an aggregation on an untracked timeseries collection on a sharded cluster will have the collectionType be "normal" and not "timeseries". This is because mongos sends the request to the shards, which will execute the full query and mongos never knows that the collection was a timeseries collection. Repro is in the comments.

      This ticket should also add tests for slow query logs on mongos in general.

            Assignee:
            Nishith Atreya
            Reporter:
            Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: