[SERVER-10886] tools with direct db access can produce corrupted output when dumping to stdout in "offline" mode (with --dbpath) Created: 25/Sep/13 Updated: 11/Jul/16 Resolved: 27/Nov/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Logging, Tools |
| Affects Version/s: | 2.4.6 |
| Fix Version/s: | 2.5.5 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Roman Kozlov | Assignee: | Shaun Verch |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu 12.04.3 x86_64 |
||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Steps To Reproduce: | (see description) |
||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Some logging leaks into the dump when using mongodump with "--dbpath" and "--out -" options. For example:
File users.bson is attached (it is a bunch of public data from one social network), so you can inspect it yourselves. |
| Comments |
| Comment by Githook User [ 27/Nov/13 ] |
|
Author: {u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}Message: |
| Comment by Samantha Ritter (Inactive) [ 29/Oct/13 ] |
|
> mongodump --db digg --collection stories --dbpath /data/db --out - > foo if there is data being written, it will be corrupted by a "dbexit" message that is logged by the dbexit function. This message should be suppressed, or re-routed to stderr. |