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

operationProfiling.filter config option rejects agg expressions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0, 4.4.3
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.8, v4.7, v4.4
    • Sprint:
      Query 2020-10-19, Query 2020-11-02

      Description

      For example, this mongod.conf fails to parse:

      operationProfiling.filter: "{$sampleRate: 0.01}"
      

      "Failed to parse option operationProfiling.filter: Unrecognized expression '$lt'"

      But it's a valid filter, and the profile command accepts it. It looks like we are parsing this option before the map of aggregation expression parsers is populated.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              david.percy David Percy
              Reporter:
              david.percy David Percy
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: