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

operationProfiling.filter config option rejects agg expressions

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0, 4.4.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.8, v4.7, v4.4
    • Query 2020-10-19, Query 2020-11-02

      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.

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

              Created:
              Updated:
              Resolved: