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

mongorestore doesn't validate --numInsertionWorkersPerCollection

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0-rc0
    • Component/s: None
    • Labels:
      None

      Description

      ~/Documents/gitroot/mongo-tools/bin/mongorestore --numInsertionWorkersPerCollection=-1

      panic: runtime error: makechan: size out of range

      goroutine 21 [running]:
      runtime.panic(0x25cd40, 0x3ed6bf)
      /usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/panic.c:279 +0xf5
      github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB(0xc2080493b0, 0xc20800f285, 0xd, 0xc2080a07c3, 0xe, 0xc2080c4180, 0x3b6eb99, 0x0, 0x0)
      /Users/amidvidy/Documents/gitroot/mongo-tools/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:234 +0x69b
      github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreIntent(0xc2080493b0, 0xc208050690, 0x0, 0x0)
      /Users/amidvidy/Documents/gitroot/mongo-tools/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:176 +0x18ab
      github.com/mongodb/mongo-tools/mongorestore.funcĀ·002(0x0)
      /Users/amidvidy/Documents/gitroot/mongo-tools/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:40 +0x1ed
      created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreIntents
      /Users/amidvidy/Documents/gitroot/mongo-tools/.gopath/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:49 +0x1b8

      ....

        Attachments

          Activity

            People

            Assignee:
            sam.helman@10gen.com sam.helman@10gen.com
            Reporter:
            adam.midvidy Adam Midvidy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: