[SERVER-7721] Regression of "mongodump --collection" Usage from 2.0.x to 2.2.x Created: 20/Nov/12 Updated: 03/May/17 Resolved: 27/Dec/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Tools |
| Affects Version/s: | 2.2.1 |
| Fix Version/s: | 2.3.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Daniel Pasette (Inactive) | Assignee: | Daniel Pasette (Inactive) |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Major Change | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Steps To Reproduce: |
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Using mongo v2.0.8, I created two collections, a.counter and b.counter, and then ran mongodump v2.0.8 w/o specifying a database. The observed behavior is mongodump iterating through all databases and looks for the "counter" collection.
mongodump v2.2.1 results in:
This seems like a regression, or at minimum, an undocumented change in behavior. |
| Comments |
| Comment by Emily Hall [ 03/May/17 ] | ||||
|
Thanks crystal.horn! | ||||
| Comment by Daniel Pasette (Inactive) [ 28/Dec/12 ] | ||||
|
Hi Lee, | ||||
| Comment by Lee Theobald [ 28/Dec/12 ] | ||||
|
So does this mean there's now no way to replicate the original functionality we were after - dumping identically named collections, regardless of database? This was a superbly useful feature for our backups & I'd hate to see it disappear. Would it not be possible to at least let us specify a wildcard instead of blocking this altogether? I might be missing a feature here that would still let me do this, so I'll double check on the mongodb-user group. | ||||
| Comment by Daniel Pasette (Inactive) [ 27/Dec/12 ] | ||||
|
This fix changes the behavior of mongodump to require specifying a database when specifying a collection. | ||||
| Comment by auto [ 27/Dec/12 ] | ||||
|
Author: {u'date': u'2012-12-27T06:34:42Z', u'email': u'dan@10gen.com', u'name': u'Dan Pasette'}Message: | ||||
| Comment by Lee Theobald [ 21/Nov/12 ] | ||||
|
I get a slightly different warning but still have the same issue:
|