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

Legacy query and getMore should appear in a consistent format across currentOp, profiler and logs

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.5
    • Component/s: Querying
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change
    • Backport Requested:
      v3.4
    • Sprint:
      Query 2017-03-27

      Description

      The following inconsistencies exist in how legacy query/getMore are represented in diagnostic output:

      In currentOp:

      • Legacy queries are upconverted to resemble find commands.
      • Legacy getMores are not upconverted. The original query filter, but not the remainder of the query object, is shown in the "query" field rather than the originatingCommand field.

      In the profiler:

      • Legacy queries are upconverted to find commands.
      • Legacy getMores are upconverted to getMore commands. The original query is not recorded.

      In the logs:

      • No upconversion of either operation is performed.
      • Legacy getMore displays the original query's filter in the "query" field.

      Upconversion and display of legacy queries and getMores should be consistent across currentOp/profiler/logs, and in the case of getMores the original operation should be shown in the originatingCommand field.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              david.storch David Storch
              Reporter:
              bernard.gorman Bernard Gorman
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: