-
Type: Bug
-
Resolution: Gone away
-
Priority: Major - P3
-
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
- 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')})
- Open Compass and connect to the same deployment
- 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).
- is duplicated by
-
COMPASS-7640 Compass Performance Monitor throws an error when there is a running operation having bsonRegExp
- Closed
- related to
-
MONGOSH-1703 mongosh crash when converting invalid regular expression in db.currentOp()
- Closed