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

Compass Performance Monitor throws an error when there is a running operation having bsonRegExp

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Performance
    • Labels:
      None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Developer Tools
    • 3
    • Not Needed

      Problem Statement/Rationale

      Compass Performance Monitor throws an error when there is a running operation having bsonRegExp

      Please be sure to attach relevant logs with any sensitive data redacted.
      How to retrieve logs for: Compass; Shell

      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

      We expect compass to correctly be able to open performance monitor tab without any errors.

      Actual Results

      An error is popping up and the tab does not load

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            Unassigned Unassigned
            Reporter:
            himanshu.singh@mongodb.com Himanshu Singh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: