Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-22874

network asio operation embeds literal tabs and newlines into strings

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.3.4
    • Affects Version/s: None
    • Component/s: Networking
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Hide

      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.
      
      Show
      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.
    • Platforms 12 (04/01/16)

      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.

            Assignee:
            waley.chen Waley Chen
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: