[SERVER-10885] mongodump produces invalid bson when dumping to stdout in verbose mode Created: 25/Sep/13  Updated: 11/Jul/16  Resolved: 11/Oct/13

Status: Closed
Project: Core Server
Component/s: Logging, Tools
Affects Version/s: 2.4.6
Fix Version/s: 2.5.3

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


Issue Links:
Duplicate
is duplicated by SERVER-10886 tools with direct db access can produ... Closed
Related
is related to SERVER-10989 --quiet flag does not suppress logged... Closed
is related to SERVER-8713 bsondump output interferes with progr... Closed
Operating System: ALL
Steps To Reproduce:

(see description)

Participants:

 Description   

First few lines of dump are actually log output:

$ mongodump -u xxx -p xxx -d database -c collection -v --out - > collection.bson
connected to: 127.0.0.1
$ head -3 collection.bson
Wed Sep 25 07:34:39.127 creating new connection to:127.0.0.1:27017
Wed Sep 25 07:34:39.128 BackgroundJob starting: ConnectBG
Wed Sep 25 07:34:39.128 connected connection!



 Comments   
Comment by auto [ 11/Oct/13 ]

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: SERVER-10885 Create new Console class to redirect tool logging to stderr instead of stdout
Branch: master
https://github.com/mongodb/mongo/commit/8af35e1ed355a413782a45d13ce50b582ab91355

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