[SERVER-23136] Count command should return InvalidNamespace instead of BadValue Created: 14/Mar/16  Updated: 16/Sep/16  Resolved: 15/Mar/16

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 3.2.4, 3.3.4
Fix Version/s: 3.3.4

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Minor Change
Operating System: ALL
Sprint: Sharding 12 (04/01/16)
Participants:
Linked BF Score: 0

 Description   

Currently if the count command is called with bad namespace the parsing code returns code BadValue (2), which is not very descriptive. It should be changed to error code InvalidNamespace (73).



 Comments   
Comment by Githook User [ 16/Sep/16 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: Revert "SERVER-23136 remove heartbeat error message check from disallow_adding_initialized_node2.js - we are already checking the logs for the inconsistent replica set id message"

This reverts commit f9af4a9f81e0fadb003215bd5e4a03b348ac1c99.
Branch: master
https://github.com/mongodb/mongo/commit/761612fec36b1deeb0369605e615dc6ded1e2c1d

Comment by Githook User [ 16/Sep/16 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-23136 remove heartbeat error message check from disallow_adding_initialized_node2.js - we are already checking the logs for the inconsistent replica set id message
Branch: master
https://github.com/mongodb/mongo/commit/f9af4a9f81e0fadb003215bd5e4a03b348ac1c99

Comment by Kaloian Manassiev [ 15/Mar/16 ]

This change the return code of the 'count' command from BadValue to InvalidNamespace in the case a bad collection name is specified.

Comment by Githook User [ 15/Mar/16 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-23136 Count command should return InvalidNamespace instead of BadValue
Branch: master
https://github.com/mongodb/mongo/commit/fea8935aa03a68524014e5d0697ca5e55d390a2b

Comment by Githook User [ 15/Mar/16 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: Revert "SERVER-23136 Count command should return InvalidNamespace instead of BadValue"

This reverts commit 643ef6752b12a9831cfd5e75e0795c3529b12389.
Branch: master
https://github.com/mongodb/mongo/commit/5f856fc375b1a5554895f98f9873c1382008f564

Comment by Githook User [ 15/Mar/16 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-23136 Count command should return InvalidNamespace instead of BadValue
Branch: master
https://github.com/mongodb/mongo/commit/643ef6752b12a9831cfd5e75e0795c3529b12389

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