Report viewless timeseries collections in OpDebug::getCollectionType

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 8.2.0-rc0
    • Component/s: None
    • Catalog and Routing
    • None
    • 3
    • TBD
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      When a slow query gets logged, the collection type (normal/timeseries/system/etc.) is printed as part of the collectionType field in the log line, e.g.:

      {"t":{"$date":"2025-07-15T13:15:21.072+00:00"},"s":"I",  "c":"COMMAND",  "id":51803,   "ctx":"conn3","msg":"Slow query","attr":{"type":"command","isFromUserConnection":true,"ns":"test.ts","collectionType":"timeseries",[...]

       

      This logic does not currently work for viewless timeseries, as it is based on the underlying collection being a timeseries view or buckets namespace.

       

      Find a way to identify that the collection is viewless timeseries and report accordingly.

      This will fix the jstests/noPassthrough/logging/log_collectionType.js test.

            Assignee:
            Unassigned
            Reporter:
            Joan Bruguera Micó
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: