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

NetworkInterfaceASIO should not log binary to log file

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.6.0-rc4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Platforms 2017-11-13

      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
      

            Assignee:
            henrik.edin@mongodb.com Henrik Edin
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: