[CXX-1101] collection::drop() throws exception when collection does not exist and connected to 3.0 mongod or earlier Created: 25/Oct/16  Updated: 26/Oct/16  Resolved: 25/Oct/16

Status: Closed
Project: C++ Driver
Component/s: Implementation
Affects Version/s: None
Fix Version/s: 3.0.3

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


 Description   

When collection::drop() is invoked on a collection that does not exist, it is inconsistent about whether or not it throws operation_exception. Currently, it varies between server type and server version (an exception is not thrown when connected to mongod 3.2 or later or when connected to mongos, but an exception is thrown when connected to mongod versions 3.0 or earlier).

collection::drop() should never throw an exception due to a missing collection.



 Comments   
Comment by Githook User [ 26/Oct/16 ]

Author:

{u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}

Message: CXX-1101 collection::drop() shouldn't throw when coll. doesn't exist
Branch: 3.1-dev
https://github.com/mongodb/mongo-cxx-driver/commit/9785e6b4c03fb8b1cb314501ea72be3e2d5c08ec

Comment by Githook User [ 25/Oct/16 ]

Author:

{u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}

Message: CXX-1101 collection::drop() shouldn't throw when coll. doesn't exist
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/9785e6b4c03fb8b1cb314501ea72be3e2d5c08ec

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