Ensure diagnostic operations are correct for viewless timeseries

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 0

      The following operations should be on the collection’s namespace, and have the same statistics as viewful timeseries:

      • slow query logs
      • profiler
      • $currentOp aggregation stage. The aggregation stage uses getCurrentOps in the mongo process interface.
        • The currentOp command should also work, but it is deprecated
      •  collStats (the command and the aggregation stage)

      CurOp::completeAndLogOperation() is used by slow query logs and the profiler. This function calls OpDebug::getCollectionType() which we have to update for viewless timeseries. We might have to add a isTimeseries field to OpDebug since we do not have catalog information inside OpDebug nor Curop.

      For the different operations here are the following that need test cases

      • slow query logs
        • has an existing test jstests/noPassthrough/logging/log_collectionType.js‎. We should enable it for viewless timeseries in this ticket.
      • profiler
        • has no test
      • $currentOp aggregation stage. The aggregation stage uses getCurrentOps in the mongo process interface.
        • The currentOp command should also work, but it is deprecated
        • has no test 
      •  collStats (the command and the aggregation stage)
        • There is an existing timeseries_collStats.js that is working for viewless timeseries. We might not need any work here.

            Assignee:
            Joe Shalabi
            Reporter:
            Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: