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

Truncated playback file when using --gzip option

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.4.0-rc0
    • Fix Version/s: 3.4.0-rc3
    • Component/s: mongoreplay
    • Labels:
      None

      Description

      • 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"

        Attachments

          Activity

            People

            Assignee:
            gabriel.russell Gabriel Russell
            Reporter:
            bruce.lucas Bruce Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: