[SERVER-22322] Better error message for "no database" from listIndexes Created: 27/Jan/16  Updated: 06/Dec/17  Resolved: 16/May/17

Status: Closed
Project: Core Server
Component/s: Diagnostics, Storage
Affects Version/s: None
Fix Version/s: 3.4.6, 3.5.8

Type: Improvement Priority: Minor - P4
Reporter: Billy Tetrud Assignee: Maria van Keulen
Resolution: Done Votes: 0
Labels: bkp, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to NODE-595 Error getting the collection indexes ... Closed
is related to NODE-648 Better error message for "no database... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.4
Sprint: Storage 2017-05-08, Storage 2017-05-29
Participants:

 Description   

There should be a better error message that includes what database doesn't exist, and be clear that the error is that the requested database doesn't exist. Something like "Database doesn't exist: databaseName" instead of just "no database". I was told the server is the right place for this rather than the driver: https://jira.mongodb.org/browse/NODE-648

Related to: https://jira.mongodb.org/browse/NODE-595



 Comments   
Comment by Githook User [ 15/Jun/17 ]

Author:

{u'username': u'mvankeulen94', u'name': u'Maria van Keulen', u'email': u'maria@mongodb.com'}

Message: SERVER-22322 Add namespaces to listIndexes NamespaceNotFound messages

(cherry picked from commit 9c23775905ef7a9612304c677114cb5f921bd54e)
Branch: v3.4
https://github.com/mongodb/mongo/commit/dad8a41d24e86a5b1c4dd9cc73aeede87f05ad74

Comment by Githook User [ 16/May/17 ]

Author:

{u'username': u'mvankeulen94', u'name': u'Maria van Keulen', u'email': u'maria@mongodb.com'}

Message: SERVER-22322 Add namespaces to listIndexes NamespaceNotFound messages
Branch: master
https://github.com/mongodb/mongo/commit/9c23775905ef7a9612304c677114cb5f921bd54e

Comment by Ramon Fernandez Marina [ 05/Mar/16 ]

Apologies for the radio silence fresheneesz. I'm setting the fixversion of this ticket to "Needs Triage" so it gets taken into consideration in the next round of planning.

Regards,
Ramón.

Comment by Billy Tetrud [ 27/Jan/16 ]

The ticket I linked has the case where I was seeing the message: https://jira.mongodb.org/browse/NODE-595 .

But "no database" isn't an acceptable error message in any case. ALL of those various places you're finding in the code should likely be changed to a more understandable error message.

Comment by Ramon Fernandez Marina [ 27/Jan/16 ]

fresheneesz, I see the "no database" message in various places in the code. Can you please provide more details on what operations trigger this message for you?

Thanks,
Ramón.

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