[SERVER-22874] network asio operation embeds literal tabs and newlines into strings Created: 26/Feb/16  Updated: 14/Apr/16  Resolved: 17/Mar/16

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: None
Fix Version/s: 3.3.4

Type: Bug Priority: Minor - P4
Reporter: Eric Milkie Assignee: Waley Chen
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

Example output:

[js_test:replsets_priority1] 2016-02-25T20:07:03.914+0000 d20010| 2016-02-25T20:07:03.913+0000 D ASIO     [NetworkInterfaceASIO-0] Failed to time operation 237, op was 		22		[ UNITIALIZED ]		1970-01-01T00:00:00.000+0000		RemoteCommand 238 -- target::27017 db: cmd:{}
[js_test:replsets_priority1] 2016-02-25T20:07:03.914+0000 d20010| , out: The I/O operation has been aborted because of either a thread exit or an application request.

Sprint: Platforms 12 (04/01/16)
Participants:

 Description   

The current code in network_interface_asio_operation.cpp embeds literal tabs and newline characters into the strings it produces for toString() and _failWithInfo. This produces bad interactions with the logging system and the output of logs.
In addition, one of the states UNITIALIZED is misspelled.



 Comments   
Comment by Githook User [ 17/Mar/16 ]

Author:

{u'username': u'WaleyChen', u'name': u'Waley Chen', u'email': u'waleycz@gmail.com'}

Message: SERVER-22874 network asio operation embeds literal tabs and newlines into strings
Branch: master
https://github.com/mongodb/mongo/commit/13435ba4e4ae6df60bc6999ccadd973fe34a5d14

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