[SERVER-31811] NetworkInterfaceASIO should not log binary to log file Created: 02/Nov/17  Updated: 30/Oct/23  Resolved: 10/Nov/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6.0-rc4

Type: Bug Priority: Minor - P4
Reporter: Mark Benvenuto Assignee: Henrik Edin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-31855 NetworkInterfaceASIO shouldn't try to... Closed
Related
related to SERVER-31915 Abstract pretty printing of mongo::Me... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 2017-11-13
Participants:

 Description   

At https://github.com/mongodb/mongo/blob/f96e0ef10baac1d2ca254c2c4ef78ef0ff8a0542/src/mongo/executor/network_interface_asio_command.cpp#L325-L330, the code is logging binary data to the log file. This should be converted to string before logging.

[js_test:shard_config_db_collections] 2017-11-01T22:41:40.264+0000 c20013| WARNING: mongod wrote null bytes to output
[js_test:shard_config_db_collections] 2017-11-01T22:41:40.264+0000 c20013| 2017-11-01T22:41:40.262+0000 D ASIO     [NetworkInterfaceASIO-RS-0] Failed to send message: >��)�������������f������Ja��getMore��aE���collection�	���oplog.rs�batchSize�RU��maxTimeMS���O�term�X��lastKnownCommittedOp2H����ts�����M�Yt5(�$replData$�Queryh$readPreference�"���mode�� secondary	"4red��$cluster��X�.�Tsignature�3���hash�>�keyId<$db����local��.  Reason: CallbackCanceled: Callback canceled



 Comments   
Comment by Githook User [ 10/Nov/17 ]

Author:

{'name': 'Henrik Edin', 'username': 'henrikedin', 'email': 'henrik.edin@mongodb.com'}

Message: SERVER-31811 Remove logging of binary data.
Branch: master
https://github.com/mongodb/mongo/commit/65f7b8f30acd7f498ce6fc1c07ffc0d8d0f058c8

Generated at Thu Feb 08 04:28:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.