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

"session already closed" in mongorestore

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0
    • Affects Version/s: 3.0.0-rc8
    • Component/s: mongorestore

      i killed the server while running a restore of 4 collections in parallel, and it triggered a panic:

      2015-02-14T03:09:49.891+0000    [#############...........]  enron_mail.messages3  767.8 MB/1.4 GB  (55.1%)
      2015-02-14T03:09:51.967+0000    error: write tcp 127.0.0.1:27017: broken pipe
      2015-02-14T03:09:51.967+0000    error: write tcp 127.0.0.1:27017: broken pipe
      2015-02-14T03:09:51.999+0000    error: write tcp 127.0.0.1:27017: broken pipe
      panic: Session already closed
      
      goroutine 56 [running]:
      runtime.panic(0x750b00, 0xc24bd25510)
              /usr/local/go/src/pkg/runtime/panic.c:279 +0xf5
      gopkg.in/mgo%2ev2.(*Session).cluster(0xc208010180, 0x4ad9a7)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:1384 +0x72
      gopkg.in/mgo%2ev2.(*Session).acquireSocket(0xc208010180, 0x822f00, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3791 +0x286
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec450, 0x7318c0, 0xc2080ecc90, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3893 +0xf5
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080ec930, 0x741b20, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc208082240, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:261 +0x4bd
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 16 [runnable]:
      github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreIntents(0xc2080566e0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:58 +0x27c
      github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).Restore(0xc2080566e0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/mongorestore.go:225 +0x8b6
      main.main()
              /data/mci/shell/src/src/mongo-tools-repo/mongorestore/main/mongorestore.go:69 +0x74e
      
      goroutine 19 [finalizer wait]:
      runtime.park(0x41c0b0, 0xce5bd0, 0xcd2849)
              /usr/local/go/src/pkg/runtime/proc.c:1369 +0x89
      runtime.parkunlock(0xce5bd0, 0xcd2849)
              /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
      
      goroutine 20 [syscall]:
      os/signal.loop()
              /usr/local/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
      created by os/signal.init·1
              /usr/local/go/src/pkg/os/signal/signal_unix.go:27 +0x32
      
      goroutine 26 [semacquire]:
      sync.runtime_Semacquire(0xc22a5b4384)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*WaitGroup).Wait(0xc26ca4b3a0)
              /usr/local/go/src/pkg/sync/waitgroup.go:129 +0x14b
      gopkg.in/mgo%2ev2.(*mongoCluster).syncServersIteration(0xc208054400, 0x1)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/cluster.go:499 +0x3b5
      gopkg.in/mgo%2ev2.(*mongoCluster).syncServersLoop(0xc208054400)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/cluster.go:352 +0x1e1
      created by gopkg.in/mgo%2ev2.newCluster
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/cluster.go:76 +0x171
      
      goroutine 25 [chan receive]:
      github.com/mongodb/mongo-tools/common/signals.Handle()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/signals/signals_unix.go:16 +0x163
      created by main.main
              /data/mci/shell/src/src/mongo-tools-repo/mongorestore/main/mongorestore.go:16 +0x31
      
      goroutine 17 [syscall]:
      runtime.goexit()
              /usr/local/go/src/pkg/runtime/proc.c:1445
      
      goroutine 28 [select]:
      github.com/mongodb/mongo-tools/common/progress.(*Manager).start(0xc2080c2200)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/progress/manager.go:111 +0xfe
      created by github.com/mongodb/mongo-tools/common/progress.(*Manager).Start
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/progress/manager.go:100 +0xa4
      
      goroutine 36 [semacquire]:
      sync.runtime_Semacquire(0xc2080c80e4)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc2080c80e0)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*mongoSocket).readLoop(0xc2080c80e0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:550 +0x7f8
      created by gopkg.in/mgo%2ev2.newSocket
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:166 +0x2ee
      
      goroutine 27 [sleep]:
      time.Sleep(0x12a05f200)
              /usr/local/go/src/pkg/runtime/time.goc:39 +0x31
      gopkg.in/mgo%2ev2.(*mongoServer).pinger(0xc2080c8000, 0xc2080c8001)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/server.go:297 +0x11e
      created by gopkg.in/mgo%2ev2.newServer
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/server.go:90 +0xf1
      
      goroutine 29 [chan receive]:
      github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB(0xc2080566e0, 0xc2080b2905, 0xa, 0xc2080ba870, 0x8, 0xc208046280, 0x57038f6b, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:280 +0x84a
      github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreIntent(0xc2080566e0, 0xc2080de4b0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:177 +0x16d1
      github.com/mongodb/mongo-tools/mongorestore.func·002(0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:46 +0x205
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreIntents
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:53 +0x20c
      
      goroutine 30 [chan receive]:
      github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB(0xc2080566e0, 0xc2080b2905, 0xa, 0xc2080ba8b0, 0x9, 0xc2080c2080, 0x57038f6b, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:280 +0x84a
      github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreIntent(0xc2080566e0, 0xc2080de500, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:177 +0x16d1
      github.com/mongodb/mongo-tools/mongorestore.func·002(0x1)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:46 +0x205
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreIntents
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:53 +0x20c
      
      goroutine 49 [chan receive]:
      github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB(0xc2080566e0, 0xc2080b2905, 0xa, 0xc2080ba930, 0x9, 0xc2080c2580, 0x57038f6b, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:280 +0x84a
      github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreIntent(0xc2080566e0, 0xc2080de5a0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:177 +0x16d1
      github.com/mongodb/mongo-tools/mongorestore.func·002(0x3)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:46 +0x205
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreIntents
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:53 +0x20c
      
      goroutine 50 [runnable]:
      github.com/mongodb/mongo-tools/mongorestore.func·003()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:233 +0x1b8
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:236 +0x746
      
      goroutine 51 [semacquire]:
      sync.runtime_Semacquire(0xc2727b58fc)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc2727b58f8)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec180, 0x7318c0, 0xc2080eca50, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3921 +0x47a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080ed350, 0xc239802fa0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080ec270, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080ec270, 0x822f80, 0xc239802f20, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 52 [semacquire]:
      sync.runtime_Semacquire(0xc2080c81c4)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc2080c81c0)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*mongoSocket).Acquire(0xc2080c81c0, 0x73f840)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:214 +0x32
      gopkg.in/mgo%2ev2.(*Session).acquireSocket(0xc2080fe000, 0xc244712400, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3764 +0x82
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec180, 0x7318c0, 0xc208081440, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3893 +0xf5
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080ecc30, 0xc29a1bbac0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080ec2d0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080ec2d0, 0x822f80, 0xc29a1bbaa0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 65 [chan receive]:
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:241 +0xcf
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 81 [chan send]:
      github.com/mongodb/mongo-tools/mongorestore.func·003()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:233 +0x1b8
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:236 +0x746
      
      goroutine 82 [IO wait]:
      net.runtime_pollWait(0x7fd5a37c0ab8, 0x77, 0x0)
              /usr/local/go/src/pkg/runtime/netpoll.goc:146 +0x66
      net.(*pollDesc).Wait(0xc2080aa300, 0x77, 0x0, 0x0)
              /usr/local/go/src/pkg/net/fd_poll_runtime.go:84 +0x46
      net.(*pollDesc).WaitWrite(0xc2080aa300, 0x0, 0x0)
              /usr/local/go/src/pkg/net/fd_poll_runtime.go:93 +0x42
      net.(*netFD).Write(0xc2080aa2a0, 0xc29c1d6000, 0x1fffb10, 0x211c000, 0x7673e5, 0x7fd5a37bf460, 0xb)
              /usr/local/go/src/pkg/net/fd_unix.go:335 +0x49c
      net.(*conn).Write(0xc2080b6040, 0xc29c1d6000, 0x1fffb10, 0x211c000, 0x0, 0x0, 0x0)
              /usr/local/go/src/pkg/net/net.go:130 +0xe7
      gopkg.in/mgo%2ev2.(*mongoSocket).Query(0xc2080c80e0, 0x7fd59c3cbcb0, 0x2, 0x2, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:492 +0x19e2
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec3f0, 0x7318c0, 0xc208082a80, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3917 +0x42a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080aee70, 0xc2799a22e0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080ec4e0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080ec4e0, 0x822f80, 0xc2799a22c0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 83 [semacquire]:
      sync.runtime_Semacquire(0xc3320d16bc)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc3320d16b8)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec3f0, 0x7318c0, 0xc208082c60, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3921 +0x47a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080aef30, 0xc27e880ac0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080ec570, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080ec570, 0x822f80, 0xc27e880aa0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 84 [chan send]:
      github.com/mongodb/mongo-tools/mongorestore.func·003()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:233 +0x1b8
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:236 +0x746
      
      goroutine 85 [semacquire]:
      sync.runtime_Semacquire(0xc24f987534)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc24f987530)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080806c0, 0x7318c0, 0xc2080812f0, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3921 +0x47a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc208083170, 0xc280bf4f60, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080808d0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080808d0, 0x822f80, 0xc280bf4f40, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 86 [semacquire]:
      sync.runtime_Semacquire(0xc208062384)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc208062380)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*mongoSocket).Acquire(0xc208062380, 0x73f840)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:214 +0x32
      gopkg.in/mgo%2ev2.(*Session).acquireSocket(0xc2080fe300, 0xc2184b9c00, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3764 +0x82
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080806c0, 0x7318c0, 0xc2080eccc0, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3893 +0xf5
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080830b0, 0xc23e2f3600, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc208080ae0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc208080ae0, 0x822f80, 0xc23e2f35a0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 67 [runnable]:
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:241 +0xcf
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 68 [runnable]:
      gopkg.in/mgo.v2/bson.handleErr(0x7fd59c3e3200)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bson/bson.go:400
      gopkg.in/mgo.v2/bson.Marshal(0x822f80, 0xc2f4e057e0, 0xc2be926000, 0x39f8, 0x4000, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bson/bson.go:455 +0x1b8
      gopkg.in/mgo%2ev2.addBSON(0xc301656000, 0x5441c1, 0x672000, 0x822f80, 0xc2f4e057e0, 0x0, 0x0, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:645 +0x162
      gopkg.in/mgo%2ev2.(*mongoSocket).Query(0xc208062460, 0x7fd59c3e3cb0, 0x2, 0x2, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:390 +0x3d0c
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec450, 0x7318c0, 0xc2080ec810, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3917 +0x42a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080828d0, 0xc26416a960, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080ec6f0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080ec6f0, 0x822f80, 0xc26416a920, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 37 [semacquire]:
      sync.runtime_Semacquire(0xc2080c80e4)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc2080c80e0)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*mongoSocket).Acquire(0xc2080c80e0, 0x73f840)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:214 +0x32
      gopkg.in/mgo%2ev2.(*Session).acquireSocket(0xc2080fe180, 0xc22d04e000, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3764 +0x82
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec3f0, 0x7318c0, 0xc2080823f0, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3893 +0xf5
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080ed8f0, 0xc24c18e5c0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080ae060, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080ae060, 0x822f80, 0xc24c18e5a0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 38 [runnable]:
      sync.runtime_Semacquire(0xc2080c81c4)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc2080c81c0)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*mongoSocket).Query(0xc2080c81c0, 0x7fd59c427cb0, 0x2, 0x2, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:457 +0x10df
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec180, 0x7318c0, 0xc2080ae810, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3917 +0x42a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080ed4d0, 0xc28a54b480, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080ae150, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080ae150, 0x822f80, 0xc28a54b420, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 53 [semacquire]:
      sync.runtime_Semacquire(0xc208062384)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc208062380)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*mongoSocket).Acquire(0xc208062380, 0x73f840)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:214 +0x32
      gopkg.in/mgo%2ev2.(*Session).acquireSocket(0xc2080fe300, 0xc21aebb900, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3764 +0x82
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080806c0, 0x7318c0, 0xc208081500, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3893 +0xf5
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080831d0, 0xc21e902320, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080820c0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080820c0, 0x822f80, 0xc21e9022e0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 54 [runnable]:
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:241 +0xcf
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 39 [semacquire]:
      sync.runtime_Semacquire(0xc280a82d5c)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc280a82d58)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec3f0, 0x7318c0, 0xc208081710, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3921 +0x47a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc208082960, 0xc258608a80, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080ae2a0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080ae2a0, 0x822f80, 0xc258608a40, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 55 [semacquire]:
      sync.runtime_Semacquire(0xc208062384)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc208062380)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*mongoSocket).Acquire(0xc208062380, 0x73f840)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:214 +0x32
      gopkg.in/mgo%2ev2.(*Session).acquireSocket(0xc2080fe300, 0xc32ceae000, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3764 +0x82
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080806c0, 0x7318c0, 0xc2080825d0, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3893 +0xf5
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc208083050, 0xc23e16e4a0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080821e0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080821e0, 0x822f80, 0xc23e16e480, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 69 [semacquire]:
      sync.runtime_Semacquire(0xc2080c81c4)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc2080c81c0)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*mongoSocket).Acquire(0xc2080c81c0, 0x73f840)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:214 +0x32
      gopkg.in/mgo%2ev2.(*Session).acquireSocket(0xc2080fe000, 0xc23b1b0300, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3764 +0x82
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec180, 0x7318c0, 0xc2080814d0, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3893 +0xf5
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080ecdb0, 0xc27115b640, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080ec780, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080ec780, 0x822f80, 0xc27115b600, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 87 [semacquire]:
      sync.runtime_Semacquire(0xc2080c80e4)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc2080c80e0)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*mongoSocket).Acquire(0xc2080c80e0, 0x73f840)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:214 +0x32
      gopkg.in/mgo%2ev2.(*Session).acquireSocket(0xc2080fe180, 0xc20c1c2800, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3764 +0x82
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec3f0, 0x7318c0, 0xc208082180, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3893 +0xf5
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080eda10, 0xc287af80e0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc208080c90, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc208080c90, 0x822f80, 0xc287af80c0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 57 [IO wait]:
      net.runtime_pollWait(0x7fd5a37c0958, 0x77, 0x0)
              /usr/local/go/src/pkg/runtime/netpoll.goc:146 +0x66
      net.(*pollDesc).Wait(0xc20802a300, 0x77, 0x0, 0x0)
              /usr/local/go/src/pkg/net/fd_poll_runtime.go:84 +0x46
      net.(*pollDesc).WaitWrite(0xc20802a300, 0x0, 0x0)
              /usr/local/go/src/pkg/net/fd_poll_runtime.go:93 +0x42
      net.(*netFD).Write(0xc20802a2a0, 0xc30dfbe000, 0x1fff673, 0x2680000, 0x535f8a, 0x7fd5a37bf460, 0xb)
              /usr/local/go/src/pkg/net/fd_unix.go:335 +0x49c
      net.(*conn).Write(0xc2080321f8, 0xc30dfbe000, 0x1fff673, 0x2680000, 0x0, 0x0, 0x0)
              /usr/local/go/src/pkg/net/net.go:130 +0xe7
      gopkg.in/mgo%2ev2.(*mongoSocket).Query(0xc208062380, 0x7fd59c3fdcb0, 0x2, 0x2, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:492 +0x19e2
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080806c0, 0x7318c0, 0xc2080814a0, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3917 +0x42a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc208083110, 0xc287ec5be0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc208082300, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc208082300, 0x822f80, 0xc287ec5b80, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 58 [runnable]:
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:241 +0xcf
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 59 [semacquire]:
      sync.runtime_Semacquire(0xc2fea4870c)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc2fea48708)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec180, 0x7318c0, 0xc2080ae6c0, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3921 +0x47a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080ed470, 0xc237c219e0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc208082090, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc208082090, 0x822f80, 0xc237c219c0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 88 [semacquire]:
      sync.runtime_Semacquire(0xc2080c80e4)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc2080c80e0)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*mongoSocket).Acquire(0xc2080c80e0, 0x73f840)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:214 +0x32
      gopkg.in/mgo%2ev2.(*Session).acquireSocket(0xc2080fe180, 0xc252b6c000, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3764 +0x82
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec3f0, 0x7318c0, 0xc2080ec9c0, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3893 +0xf5
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080ed950, 0xc258d15820, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc208080840, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc208080840, 0x822f80, 0xc258d15800, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 89 [semacquire]:
      sync.runtime_Semacquire(0xc285fbf8ac)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc285fbf8a8)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080806c0, 0x7318c0, 0xc2080ae180, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3921 +0x47a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc208082ff0, 0xc250727500, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc208081020, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc208081020, 0x822f80, 0xc2507274e0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 90 [runnable]:
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:241 +0xcf
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 60 [semacquire]:
      sync.runtime_Semacquire(0xc31bb97bec)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc31bb97be8)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec180, 0x7318c0, 0xc208081050, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3921 +0x47a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080ed410, 0xc24c534820, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080822a0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080822a0, 0x822f80, 0xc24c534800, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 40 [semacquire]:
      sync.runtime_Semacquire(0xc2700c943c)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc2700c9438)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec3f0, 0x7318c0, 0xc2080ed2c0, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3921 +0x47a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080aeba0, 0xc27fab1460, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080ae390, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080ae390, 0x822f80, 0xc27fab1440, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 41 [semacquire]:
      sync.runtime_Semacquire(0xc31636c11c)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc31636c118)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080806c0, 0x7318c0, 0xc2080ecfc0, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3921 +0x47a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080ed020, 0xc26498edc0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080ae570, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080ae570, 0x822f80, 0xc26498ed60, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 42 [runnable]:
      gopkg.in/mgo%2ev2.(*mongoSocket).Query(0xc208062460, 0x7fd5a362ecb0, 0x2, 0x2, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:389 +0x3c50
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec450, 0x7318c0, 0xc2080ec720, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3917 +0x42a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc208082780, 0xc2997ddfc0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080ae5d0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080ae5d0, 0x822f80, 0xc2997ddf80, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 61 [semacquire]:
      sync.runtime_Semacquire(0xc22505a004)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc22505a000)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec180, 0x7318c0, 0xc208082420, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3921 +0x47a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080810e0, 0xc2ecb413a0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080821b0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080821b0, 0x822f80, 0xc2ecb41300, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 43 [semacquire]:
      sync.runtime_Semacquire(0xc32ce6d63c)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc32ce6d638)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec3f0, 0x7318c0, 0xc208082b70, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3921 +0x47a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080aef90, 0xc286606ce0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080ae420, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080ae420, 0x822f80, 0xc286606cc0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 91 [semacquire]:
      sync.runtime_Semacquire(0xc216a09fcc)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc216a09fc8)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080806c0, 0x7318c0, 0xc2080ec990, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3921 +0x47a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc208083230, 0xc2f463f880, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080ec7e0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080ec7e0, 0x822f80, 0xc2f463f820, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 92 [runnable]:
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:241 +0xcf
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 44 [semacquire]:
      sync.runtime_Semacquire(0xc2080c81c4)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc2080c81c0)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*mongoSocket).Acquire(0xc2080c81c0, 0x73f840)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:214 +0x32
      gopkg.in/mgo%2ev2.(*Session).acquireSocket(0xc2080fe000, 0xc236498000, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3764 +0x82
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec180, 0x7318c0, 0xc208081470, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3893 +0xf5
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080eced0, 0xc271544780, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080ae690, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080ae690, 0x822f80, 0xc271544720, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 70 [semacquire]:
      sync.runtime_Semacquire(0xc3320d16b4)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc3320d16b0)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec3f0, 0x7318c0, 0xc208082c00, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3921 +0x47a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080aeed0, 0xc27d9cd960, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc208080e10, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc208080e10, 0x822f80, 0xc27d9cd940, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 93 [semacquire]:
      sync.runtime_Semacquire(0xc208062384)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc208062380)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*mongoSocket).Acquire(0xc208062380, 0x73f840)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:214 +0x32
      gopkg.in/mgo%2ev2.(*Session).acquireSocket(0xc2080fe300, 0xc226eecc00, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3764 +0x82
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080806c0, 0x7318c0, 0xc208081530, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3893 +0xf5
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc208083290, 0xc218c4c200, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080ec900, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080ec900, 0x822f80, 0xc218c4c1c0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 94 [runnable]:
      gopkg.in/mgo.v2/bson.handleErr(0x7fd59c3f7200)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bson/bson.go:400
      gopkg.in/mgo.v2/bson.Marshal(0x822f80, 0xc2f463f240, 0xc229508000, 0x1bb1, 0x2000, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bson/bson.go:455 +0x1b8
      gopkg.in/mgo%2ev2.addBSON(0xc2ada98000, 0xc9a6ee, 0xd8e000, 0x822f80, 0xc2f463f240, 0x0, 0x0, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:645 +0x162
      gopkg.in/mgo%2ev2.(*mongoSocket).Query(0xc208062460, 0x7fd59c3f7cb0, 0x2, 0x2, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:390 +0x3d0c
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec450, 0x7318c0, 0xc2080ec4b0, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3917 +0x42a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc208082870, 0xc296dad900, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc2080ec960, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc2080ec960, 0x822f80, 0xc296dad8e0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 62 [semacquire]:
      sync.runtime_Semacquire(0xc234fa7894)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc234fa7890)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec180, 0x7318c0, 0xc2080ae600, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3921 +0x47a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080ed590, 0xc2feabeb40, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc208082060, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc208082060, 0x822f80, 0xc2feabeb20, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 63 [semacquire]:
      sync.runtime_Semacquire(0xc2080c80e4)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc2080c80e0)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*mongoSocket).Acquire(0xc2080c80e0, 0x73f840)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:214 +0x32
      gopkg.in/mgo%2ev2.(*Session).acquireSocket(0xc2080fe180, 0xc292a2d600, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3764 +0x82
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec3f0, 0x7318c0, 0xc208082270, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3893 +0xf5
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080ed9b0, 0xc238730760, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc208082450, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc208082450, 0x822f80, 0xc238730740, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 64 [semacquire]:
      sync.runtime_Semacquire(0xc208062384)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc208062380)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*mongoSocket).Acquire(0xc208062380, 0x73f840)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:214 +0x32
      gopkg.in/mgo%2ev2.(*Session).acquireSocket(0xc2080fe300, 0xc22db52000, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3764 +0x82
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080806c0, 0x7318c0, 0xc2080ecd80, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3893 +0xf5
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080ecc60, 0xc228ed24e0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc208082510, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc208082510, 0x822f80, 0xc228ed24c0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 97 [runnable]:
      gopkg.in/mgo.v2/bson.handleErr(0x7fd59c3d3200)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bson/bson.go:400
      gopkg.in/mgo.v2/bson.Marshal(0x822f80, 0xc301165480, 0xc229250000, 0x1d3c, 0x2000, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bson/bson.go:455 +0x1b8
      gopkg.in/mgo%2ev2.addBSON(0xc31fdec000, 0x67f839, 0x7de000, 0x822f80, 0xc301165480, 0x0, 0x0, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:645 +0x162
      gopkg.in/mgo%2ev2.(*mongoSocket).Query(0xc208062460, 0x7fd59c3d3cb0, 0x2, 0x2, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:390 +0x3d0c
      gopkg.in/mgo%2ev2.(*Collection).writeQuery(0xc2080ec450, 0x7318c0, 0xc2080aed20, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/session.go:3917 +0x42a
      gopkg.in/mgo%2ev2.(*Bulk).Run(0xc2080827e0, 0xc290064400, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/bulk.go:66 +0xc1
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Flush(0xc208082570, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:69 +0x80
      github.com/mongodb/mongo-tools/common/db.(*BufferedBulkInserter).Insert(0xc208082570, 0x822f80, 0xc2900643e0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/common/db/buffered_bulk.go:54 +0x299
      github.com/mongodb/mongo-tools/mongorestore.func·004()
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:249 +0x32a
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB
              /data/mci/shell/src/src/mongo-tools-repo/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:272 +0x7bc
      
      goroutine 95 [semacquire]:
      sync.runtime_Semacquire(0xc208062384)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc208062380)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*mongoSocket).readLoop(0xc208062380)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:550 +0x7f8
      created by gopkg.in/mgo%2ev2.newSocket
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:166 +0x2ee
      
      goroutine 71 [semacquire]:
      sync.runtime_Semacquire(0xc2080c81c4)
              /usr/local/go/src/pkg/runtime/sema.goc:199 +0x30
      sync.(*Mutex).Lock(0xc2080c81c0)
              /usr/local/go/src/pkg/sync/mutex.go:66 +0xd6
      gopkg.in/mgo%2ev2.(*mongoSocket).readLoop(0xc2080c81c0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:550 +0x7f8
      created by gopkg.in/mgo%2ev2.newSocket
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:166 +0x2ee
      
      goroutine 99 [runnable]:
      net.lookupIPDeadline(0xc208001990, 0x9, 0xecc70b38a, 0x257419, 0xce7880, 0x0, 0x0, 0x0, 0x0, 0x0)
              /usr/local/go/src/pkg/net/lookup.go:82 +0x2b1
      net.resolveInternetAddr(0x88f420, 0x3, 0xc208001990, 0xf, 0xecc70b38a, 0x257419, 0xce7880, 0x0, 0x0, 0x0, ...)
              /usr/local/go/src/pkg/net/ipsock.go:285 +0x49a
      net.resolveAddr(0x888ba0, 0x4, 0x88f420, 0x3, 0xc208001990, 0xf, 0xecc70b38a, 0x257419, 0xce7880, 0x0, ...)
              /usr/local/go/src/pkg/net/dial.go:110 +0x385
      net.(*Dialer).Dial(0xc20b11c000, 0x88f420, 0x3, 0xc208001990, 0xf, 0x0, 0x0, 0x0, 0x0)
              /usr/local/go/src/pkg/net/dial.go:159 +0xff
      net.DialTimeout(0x88f420, 0x3, 0xc208001990, 0xf, 0x2540be400, 0x0, 0x0, 0x0, 0x0)
              /usr/local/go/src/pkg/net/dial.go:151 +0xda
      gopkg.in/mgo%2ev2.resolveAddr(0xc208001990, 0xf, 0x0, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/cluster.go:411 +0x80
      gopkg.in/mgo%2ev2.func·009()
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/cluster.go:445 +0xd4
      created by gopkg.in/mgo%2ev2.func·010
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/cluster.go:492 +0x14c
      
      goroutine 98 [IO wait]:
      net.runtime_pollWait(0x7fd5a37c07f8, 0x72, 0x0)
              /usr/local/go/src/pkg/runtime/netpoll.goc:146 +0x66
      net.(*pollDesc).Wait(0xc222578220, 0x72, 0x0, 0x0)
              /usr/local/go/src/pkg/net/fd_poll_runtime.go:84 +0x46
      net.(*pollDesc).WaitRead(0xc222578220, 0x0, 0x0)
              /usr/local/go/src/pkg/net/fd_poll_runtime.go:89 +0x42
      net.(*netFD).Read(0xc2225781c0, 0xc208081680, 0x24, 0x24, 0x0, 0x7fd5a37bf460, 0xb)
              /usr/local/go/src/pkg/net/fd_unix.go:242 +0x34c
      net.(*conn).Read(0xc2080321d8, 0xc208081680, 0x24, 0x24, 0x0, 0x0, 0x0)
              /usr/local/go/src/pkg/net/net.go:122 +0xe7
      gopkg.in/mgo%2ev2.fill(0x7fd5a37c0bc0, 0xc2080321d8, 0xc208081680, 0x24, 0x24, 0x0, 0x0)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:502 +0x7f
      gopkg.in/mgo%2ev2.(*mongoSocket).readLoop(0xc208062540)
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:519 +0x11f
      created by gopkg.in/mgo%2ev2.newSocket
              /data/mci/shell/src/src/mongo-tools-repo/vendor/src/gopkg.in/mgo.v2/socket.go:166 +0x2ee
      
      

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

              Created:
              Updated:
              Resolved: