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

Mongostat crashes when a new node is added to a replica set

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.8.0-rc0
    • None
    • None

    Description

      panic: Cannot call SliceContains on a non-slice "Sam-Helman-MacBook-Pro.local:20000" of kind "string"
       
      goroutine 46 [running]:
      runtime.panic(0x1c8da0, 0xc20811f740)
      	/Users/sam/tengen/mci/src/go/src/pkg/runtime/panic.c:279 +0xf5
      github.com/mongodb/mongo-tools/common/util.SliceContains(0x1c8da0, 0xc20811f710, 0x1be140, 0xc208111a40, 0x3)
      	/Users/sam/tengen/mongo-tools/.gopath/src/github.com/mongodb/mongo-tools/common/util/slice.go:17 +0x21d
      github.com/mongodb/mongo-tools/mongostat.NewStatLine(0xecbedc6e9, 0x202ef71, 0x3bf920, 0xc20811cf00, 0x22, 0xc20812b482, 0xa, 0xc20812b4a8, 0x6, 0x8cbf, ...)
      	/Users/sam/tengen/mongo-tools/.gopath/src/github.com/mongodb/mongo-tools/mongostat/stat_types.go:700 +0xf63
      github.com/mongodb/mongo-tools/mongostat.(*NodeMonitor).Report(0xc20801b360, 0xc208013200, 0x0, 0xc2080042a0, 0x1)
      	/Users/sam/tengen/mongo-tools/.gopath/src/github.com/mongodb/mongo-tools/mongostat/mongostat.go:237 +0x4f2
      github.com/mongodb/mongo-tools/mongostat.funcĀ·003()
      	/Users/sam/tengen/mongo-tools/.gopath/src/github.com/mongodb/mongo-tools/mongostat/mongostat.go:271 +0xa4
      created by github.com/mongodb/mongo-tools/mongostat.(*NodeMonitor).Watch
      	/Users/sam/tengen/mongo-tools/.gopath/src/github.com/mongodb/mongo-tools/mongostat/mongostat.go:275 +0xdb
       

      Attachments

        Activity

          People

            sam.helman@10gen.com sam.helman@10gen.com
            sam.helman@10gen.com sam.helman@10gen.com
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: