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

mongoreplay panic handling BSON Decimal128

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: 4.0.2
    • Fix Version/s: No versions
    • Component/s: mongoreplay
    • Labels:
      None

      Description

      While running "mongoreplay monitor" during Perl driver testing, the following panic occurred:

      panic: couldn't unmarshal Raw bson into D: Unknown element kind (0x13)
       
      goroutine 1 [running]:
      github.com/mongodb/mongo-tools/mongoreplay.extractOpType(0x43889e0, 0xc4222494c0, 0x43889e0, 0xc4222494c0, 0x4361420, 0x400961c)
              /data/mci/625dbcac5ade9db558ed3b129cabf0a8/src/src/mongo/gotools/.gopath/src/github.com/mongodb/mongo-tools/mongoreplay/query_op.go:56 +0x678
      github.com/mongodb/mongo-tools/mongoreplay.extractOpType(0x435b6c0, 0xc4222494a0, 0x4d, 0x0, 0x0, 0xc422055990)
              /data/mci/625dbcac5ade9db558ed3b129cabf0a8/src/src/mongo/gotools/.gopath/src/github.com/mongodb/mongo-tools/mongoreplay/query_op.go:51 +0x2c7
      github.com/mongodb/mongo-tools/mongoreplay.(*QueryOp).Meta(0xc4220a5ef0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
              /data/mci/625dbcac5ade9db558ed3b129cabf0a8/src/src/mongo/gotools/.gopath/src/github.com/mongodb/mongo-tools/mongoreplay/query_op.go:29 +0x6b
      github.com/mongodb/mongo-tools/mongoreplay.(*RegularStatGenerator).GenerateOpStat(0xc42118e000, 0xc4222767e0, 0x45c2f00, 0xc4220a5ef0, 0x0, 0x0, 0x0, 0x0, 0x0)
              /data/mci/625dbcac5ade9db558ed3b129cabf0a8/src/src/mongo/gotools/.gopath/src/github.com/mongodb/mongo-tools/mongoreplay/stat_collector.go:382 +0x77
      github.com/mongodb/mongo-tools/mongoreplay.(*StatCollector).Collect(0xc421118050, 0xc4222767e0, 0x45c2f00, 0xc4220a5ef0, 0x0, 0x0, 0x0, 0x0)
              /data/mci/625dbcac5ade9db558ed3b129cabf0a8/src/src/mongo/gotools/.gopath/src/github.com/mongodb/mongo-tools/mongoreplay/stat_collector.go:173 +0xce
      github.com/mongodb/mongo-tools/mongoreplay.(*MonitorCommand).Execute(0xc4200e60c0, 0xc42006c2a0, 0x0, 0x6, 0x0, 0x0)
              /data/mci/625dbcac5ade9db558ed3b129cabf0a8/src/src/mongo/gotools/.gopath/src/github.com/mongodb/mongo-tools/mongoreplay/monitor.go:146 +0x298
      github.com/jessevdk/go-flags.(*Parser).ParseArgs(0xc420014370, 0xc420010160, 0x6, 0x6, 0x4011818, 0x90, 0xc4210e8630, 0xc4200fc800, 0xc4200fc4c8)
              /data/mci/625dbcac5ade9db558ed3b129cabf0a8/src/src/mongo/gotools/vendor/src/github.com/jessevdk/go-flags/parser.go:301 +0x844
      github.com/jessevdk/go-flags.(*Parser).Parse(0xc420014370, 0x43d45d8, 0x6, 0x43e5306, 0x14, 0x0)
              /data/mci/625dbcac5ade9db558ed3b129cabf0a8/src/src/mongo/gotools/vendor/src/github.com/jessevdk/go-flags/parser.go:175 +0x73
      main.main()
              /data/mci/625dbcac5ade9db558ed3b129cabf0a8/src/src/mongo/gotools/mongoreplay/main/mongoreplay.go:71 +0x43e
      

      Version information:

      mongoreplay version: r4.0.2
      git version: fc1573ba18aee42f97a3bb13b67af7d837826b47
      Go version: go1.8.7
         os: darwin
         arch: amd64
         compiler: gc
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-tools Backlog - Server Tools Team
              Reporter:
              david.golden David Golden
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: