[SERVER-39121] there are no errors on nonexistent stuff Created: 22/Jan/19  Updated: 06/Dec/22  Resolved: 17/Dec/20

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Indrek Mandre Assignee: Backlog - Server Tooling and Methods (STM) (Inactive)
Resolution: Won't Fix Votes: 0
Labels: compass-shell, move-sa, move-stm
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Tooling & Methods
Participants:

 Description   

I run:

$ mongo 
MongoDB shell version v4.0.4
...
xxx:SECONDARY> rs.slaveOk()
xxx:SECONDARY> db.nonexistingthing.find()
xxx:SECONDARY> 

It is baffling that it does not report an error. Making a query on nonexisting object. This makes no sense at all. Please fix this ASAP. I just wasted an hour of my life trying to figure out why I didn't get any data.

 



 Comments   
Comment by Robert Guo (Inactive) [ 17/Dec/20 ]

We are deprecating mongo in favor of a new mongosh shell: https://github.com/mongodb-js/mongosh with much improved usability. Please consider giving it a try and let us know of any issues under the MONGOSH Jira project.

Comment by Danny Hatcher (Inactive) [ 22/Jan/19 ]

Hello Indrek,

I have forwarded this to our Product team to take a look.

Thank you,

Danny

Generated at Thu Feb 08 04:51:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.