Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-8232

Compass Performance Monitor Fails with Regular Expression Queries

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: 1.43.6
    • Component/s: None
    • Environment:
      OS: MacOs
      Version 1.43.6 (1.43.6)
    • 3
    • Not Needed
    • Developer Tools

      Problem Statement/Rationale

      I'm using Mongo Compass to monitor the perfomance of a database, but the perfomance monitoring fails when a regular expression query is running.

      The UI shows the following error:

       

      Command "currentOp" returned error "Invalid regular expression: /(?i-mx:word)/m: Invalid group"

      Steps to Reproduce

      1. Run the following snippet in a mongosh terminal connected to a mongodb deployment:
      db.coll.insertOne({});
      db.coll.find({$where: function() { sleep(20000) }}).projection({re: BSONRegExp('^(?i)\\Qchho0842\\E')})
      1. Open Compass and connect to the same deployment
      2. Open Performance Monitor tab and notice the error popping up

      Expected Results

      The performance monitoring should keep working

      Actual Results

      The perfomance monitoring stops working until you reload the page (and crashes again if there is a new regex query).

            Assignee:
            Unassigned Unassigned
            Reporter:
            xokocodo@gmail.com Daniel Peters
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: