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

Truncated playback file when using --gzip option

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

      • create a collection with 100 documents of 1 MB each
      • begin tcpdump capture
      • do a collection scan
      • end tcpdump capture
      • create playback file from the tcpdump capture using the --gzip option
                    mongoreplay record -f $pcap -p $bson
        

      The resulting file seems to be truncated:

      • mongoreplay monitor --gzip quits early and complains
        2016/10/20 12:05:32 OpChan: ReadDocument Error: unexpected EOF
        
      • gunzip reports "unexpected end of file"

            Assignee:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Reporter:
            bruce.lucas@mongodb.com Bruce Lucas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: