[SERVER-756] dropDatabase silently fails after mapReduce in other connection Created: 15/Mar/10  Updated: 12/Jul/16  Resolved: 05/May/10

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

Type: Bug Priority: Minor - P4
Reporter: Steve Reed Assignee: Richard Kreuter (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ubuntu 9.10, linux 32-bit build (1.3.3), java driver and mongo shell (1.3.3)


Participants:

 Description   

After a mapReduce command has been performed in a database over one connection, an attempt to drop the same database in a second connection will silently fail. The command returns no error, but the database remains.

To reproduce, use the mongo shell to create two connections.

Connection1:
1. use mydb
2. db.items.save(

{n:1}

)
3. res = db.items.mapReduce("function()

{ emit(1, 1); }

", "function(k,v) { var c=0; for(i in v)

{ c+= v[i]; }

return c; }");
4. db[res.result].find()

Connection2:
1. use mydb
2. db.dropDatabase()

Expect: Either an error message stating a decent reason why the database could not be deleted, or the database to go away.

Actual: "show dbs" still lists "mydb"



 Comments   
Comment by auto [ 06/May/10 ]

Author:

{'login': 'kreuter', 'name': 'Richard Kreuter', 'email': 'richard@10gen.com'}

Message: Try #2 at SERVER-756.
http://github.com/mongodb/mongo/commit/71431eb9709e6ecb1dc7072ff06c06db9b9a4b6f

Comment by auto [ 05/May/10 ]

Author:

{'login': 'kreuter', 'name': 'Richard Kreuter', 'email': 'richard@10gen.com'}

Message: Revert "New methods dropTempCollectionsInDB & dropAllTempCollectionsInDB. SERVER-756."

This reverts commit 59645ef064b05f5743a0ea3d0274cee479cd1088.
http://github.com/mongodb/mongo/commit/c8f781ce32c70ac8eaffed33322fc136fccc1394

Comment by Richard Kreuter (Inactive) [ 05/May/10 ]

Resolved.

Comment by auto [ 05/May/10 ]

Author:

{'login': 'kreuter', 'name': 'Richard Kreuter', 'email': 'richard@10gen.com'}

Message: Merge branch 'SERVER-756'
http://github.com/mongodb/mongo/commit/39eb68c5923cdece99e1d44b46508e2e56501bb1

Comment by auto [ 05/May/10 ]

Author:

{'login': 'kreuter', 'name': 'Richard Kreuter', 'email': 'richard@10gen.com'}

Message: New methods dropTempCollectionsInDB & dropAllTempCollectionsInDB. SERVER-756.
http://github.com/mongodb/mongo/commit/59645ef064b05f5743a0ea3d0274cee479cd1088

Comment by auto [ 04/May/10 ]

Author:

{'login': 'kreuter', 'name': 'Richard Kreuter', 'email': 'richard@10gen.com'}

Message: Modulo SERVER-756, most JAVA-79.
http://github.com/mongodb/mongo-java-driver/commit/d47631dda6c5f41586e553a25cb219cd451d2e54

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