[COMPASS-7640] Compass Performance Monitor throws an error when there is a running operation having bsonRegExp Created: 07/Feb/24  Updated: 07/Feb/24

Status: Open
Project: Compass
Component/s: Performance
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Himanshu Singh Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: needs-prioritization
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS:
node.js / npm versions:
Additional info:


Attachments: PNG File image-2024-02-07-14-47-16-328.png    
Issue Links:
Related
related to MONGOSH-1703 mongosh crash when converting invalid... Open
Assigned Teams:
Developer Tools
Story Points: 3
Documentation Changes: Not Needed

 Description   

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.


Generated at Wed Feb 07 22:47:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.