Uploaded image for project: 'MongoDB CLI Tools'
  1. MongoDB CLI Tools
  2. TOOLS-1502

Playback file contains full reply payload

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.4.0-rc0
    • Fix Version/s: 3.4.1, 3.5.2
    • Component/s: mongoreplay
    • Labels:
      None
    • Backport Requested:
      v3.4

      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

                    mongoreplay record -f $pcap -p $bson
        

      The resulting playback file is 100 MB in size (the size of the full collection) and contains the full replies to both the find command and the getmores:

      20/15 15:21:32.559 (Connection: 0:3)  op_command find test Request:{"command_args":{"filter":{},"find":"c"},"input_docs":[],"metadata":{}} 
      20/15 15:21:32.582 (Connection: 0:3) +22.579ms op_commandreply    Response:{"command_reply":{"cursor":{"firstBatch":[{"_id":{"$oid":"5808e0f90af977febc2ced29"},"x":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}],"id":{"$numberLong":"20617389171"},"ns":"test.c"},"ok":1.0},"metadata":{},"output_docs":[]}
      20/15 15:21:32.606 (Connection: 0:4)  op_command getMore test Request:{"command_args":{"collection":"c","getMore":{"$numberLong":"20617389171"}},"input_docs":[],"metadata":{}} 
      20/15 15:21:32.616 (Connection: 0:4) +10.256ms op_commandreply    Response:{"command_reply":{"cursor":{"id":{"$numberLong":"20617389171"},"nextBatch":[{"_id":{"$oid":"5808e0f90af977febc2ced39"},"x":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}],"ns":"test.c"},"ok":1.0},"metadata":{},"output_docs":[]}
      20/15 15:21:32.636 (Connection: 0:5)  op_command getMore test Request:{"command_args":{"collection":"c","getMore":{"$numberLong":"20617389171"}},"input_docs":[],"metadata":{}} 
      20/15 15:21:32.641 (Connection: 0:5) +5.576ms op_commandreply    Response:{"command_reply":{"cursor":{"id":{"$numberLong":"20617389171"},"nextBatch":[{"_id":{"$oid":"5808e0f90af977febc2ced49"},"x":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}],"ns":"test.c"},"ok":1.0},"metadata":{},"output_docs":[]}
      20/15 15:21:32.658 (Connection: 0:6)  op_command getMore test Request:{"command_args":{"collection":"c","getMore":{"$numberLong":"20617389171"}},"input_docs":[],"metadata":{}} 
      20/15 15:21:32.663 (Connection: 0:6) +4.949ms op_commandreply    Response:{"command_reply":{"cursor":{"id":{"$numberLong":"20617389171"},"nextBatch":[{"_id":{"$oid":"5808e0f90af977febc2ced59"},"x":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}],"ns":"test.c"},"ok":1.0},"metadata":{},"output_docs":[]}
      20/15 15:21:32.678 (Connection: 0:7)  op_command getMore test Request:{"command_args":{"collection":"c","getMore":{"$numberLong":"20617389171"}},"input_docs":[],"metadata":{}} 
      20/15 15:21:32.683 (Connection: 0:7) +4.679ms op_commandreply    Response:{"command_reply":{"cursor":{"id":{"$numberLong":"20617389171"},"nextBatch":[{"_id":{"$oid":"5808e0f90af977febc2ced69"},"x":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}],"ns":"test.c"},"ok":1.0},"metadata":{},"output_docs":[]}
      20/15 15:21:32.699 (Connection: 0:8)  op_command getMore test Request:{"command_args":{"collection":"c","getMore":{"$numberLong":"20617389171"}},"input_docs":[],"metadata":{}} 
      20/15 15:21:32.703 (Connection: 0:8) +4.602ms op_commandreply    Response:{"command_reply":{"cursor":{"id":{"$numberLong":"20617389171"},"nextBatch":[{"_id":{"$oid":"5808e0fa0af977febc2ced79"},"x":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}],"ns":"test.c"},"ok":1.0},"metadata":{},"output_docs":[]}
      20/15 15:21:32.718 (Connection: 0:9)  op_command getMore test Request:{"command_args":{"collection":"c","getMore":{"$numberLong":"20617389171"}},"input_docs":[],"metadata":{}} 
      20/15 15:21:32.719 (Connection: 0:9) +1.323ms op_commandreply    Response:{"command_reply":{"cursor":{"id":{"$numberLong":"0"},"nextBatch":[{"_id":{"$oid":"5808e0fa0af977febc2ced89"},"x":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}],"ns":"test.c"},"ok":1.0},"metadata":{},"output_docs":[]}
      

        Attachments

        1. mr.pcap
          96.19 MB

          Activity

            People

            • Assignee:
              william.banfield William Banfield
              Reporter:
              bruce.lucas Bruce Lucas
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: