Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1500

Get "write /dev/stdout: bad file descriptor" errors using mongoreplay monitor

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.0-rc0
    • Component/s: mongoreplay
    • None
    • Platforms 2016-10-31, Platforms 2016-11-21

      bdlucas@yoshino:~$ mongoreplay monitor -p /tmp/x
      19/19 19:17:34.654 (Connection: 0:0)  command isMaster admin.$cmd Request:{"client":{"application":{"name":"MongoDB Shell"},"driver":{"name":"MongoDB Internal Client","version":"3.4.0-rc0"},"os":{"architecture":"x86_64","name":"Ubuntu","type":"Linux","version":"15.10"}},"isMaster":1} 
      19/19 19:17:34.655 (Connection: 0:0) +511µs reply    Response:{"ismaster":true,"localTime":{"$date":"2016-10-19T19:17:34.655Z"},"maxBsonObjectSize":16777216,"maxMessageSizeBytes":48000000,"maxWireVersion":5,"maxWriteBatchSize":1000,"minWireVersion":0,"ok":1.0,"readOnly":false}
      19/19 19:17:34.655 (Connection: 0:1)  op_command whatsmyuri admin Request:{"command_args":{"whatsmyuri":1},"input_docs":[],"metadata":{}} 
      19/19 19:17:34.655 (Connection: 0:1) +70µs op_commandreply    Response:{"command_reply":{"ok":1.0,"you":"127.0.0.1:56204"},"metadata":{},"output_docs":[]}
      19/19 19:17:34.656 (Connection: 0:2)  op_command buildinfo admin Request:{"command_args":{"buildinfo":1.0},"input_docs":[],"metadata":{}} 
      19/19 19:17:34.656 (Connection: 0:2) +122µs op_commandreply    Response:{"command_reply":{"allocator":"tcmalloc","bits":64,"buildEnvironment":{"cc":"/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0","ccflags":"-fno-omit-frame-pointer -fno-stric...storageEngines":["devnull","ephemeralForTest","mmapv1","wiredTiger"],"sysInfo":"deprecated","version":"3.4.0-rc0","versionArray":[3,4,0,-50]},"metadata":{},"output_docs":[]}
      19/19 19:17:34.659 (Connection: 0:3)  op_command insert test Request:{"command_args":{"documents":[{"_id":{"$oid":"5807c6cedeb91391cb674db6"}}],"insert":"c","ordered":true},"input_docs":[],"metadata":{}} 
      19/19 19:17:34.666 (Connection: 0:3) +7.244ms op_commandreply    Response:{"command_reply":{"n":1,"ok":1.0},"metadata":{},"output_docs":[]}
      2016/10/19 15:17:59 error recording stat: write /dev/stdout: bad file descriptor
      2016/10/19 15:17:59 error recording stat: write /dev/stdout: bad file descriptor
      2016/10/19 15:17:59 error recording stat: write /dev/stdout: bad file descriptor
      2016/10/19 15:17:59 error recording stat: write /dev/stdout: bad file descriptor
      2016/10/19 15:17:59 error recording stat: write /dev/stdout: bad file descriptor
      2016/10/19 15:17:59 error recording stat: write /dev/stdout: bad file descriptor
      2016/10/19 15:17:59 error recording stat: write /dev/stdout: bad file descriptor
      2016/10/19 15:17:59 error recording stat: write /dev/stdout: bad file descriptor
      

            Assignee:
            matt.cotter Matt Cotter
            Reporter:
            bruce.lucas@mongodb.com Bruce Lucas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: