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

"no reachable servers" condition should not panic

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • All Tools
    • None

    Description

      should print a more human-friendly error. Currently it prints:

      panic: error initializing database session: error connecting to db server: no reachable servers
       
      goroutine 16 [running]:
      runtime.panic(0x63fb40, 0xc208001530)
      	/usr/local/go/src/pkg/runtime/panic.c:279 +0xf5
      github.com/shelman/mongo-tools-proto/common/util.Panicf(0x7430f0, 0x27, 0x2b7b387cced0, 0x1, 0x1)
      	/data/mci/shell/src/src/github.com/shelman/mongo-tools-proto/common/util/fmt.go:15 +0x92
      main.main()
      	/data/mci/shell/src/src/github.com/shelman/mongo-tools-proto/mongoimport/main/mongoimport.go:43 +0x558
       
      goroutine 19 [finalizer wait]:
      runtime.park(0x4139b0, 0x894820, 0x893309)
      	/usr/local/go/src/pkg/runtime/proc.c:1369 +0x89
      runtime.parkunlock(0x894820, 0x893309)
      	/usr/local/go/src/pkg/runtime/proc.c:1385 +0x3b
      runfinq()
      	/usr/local/go/src/pkg/runtime/mgc0.c:2644 +0xcf
      runtime.goexit()
      	/usr/local/go/src/pkg/runtime/proc.c:1445
      ...

      Attachments

        Activity

          People

            Unassigned Unassigned
            mikeo@mongodb.com Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: