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

mongorestore with --drop does not drop when using WiredTiger

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.8.0-rc2
    • Affects Version/s: 2.8.0-rc1
    • Component/s: mongorestore
    • None

      mongorestore --drop does not attempt to drop, complains about duplicate record and fails.

      mongorestore --drop -v
      2014-11-25T09:19:44.307-0600	using default 'dump' directory
      2014-11-25T09:19:44.309-0600	using write concern: w='1', j=false, fsync=false, wtimeout=0
      2014-11-25T09:19:44.309-0600	building a list of dbs and collections to restore from dump dir
      2014-11-25T09:19:44.309-0600	found collection ycsb.usertable bson to restore
      2014-11-25T09:19:44.309-0600	found collection ycsb.usertable metadata to restore
      2014-11-25T09:19:44.310-0600	reading metadata file from dump/ycsb/usertable.metadata.json
      2014-11-25T09:19:44.310-0600	no collection options to restore
      2014-11-25T09:19:44.310-0600	restoring ycsb.usertable from file dump/ycsb/usertable.bson
      2014-11-25T09:19:44.310-0600		file dump/ycsb/usertable.bson is 4526386054 bytes
      restore error: error writing bulk insert: E11000 duplicate key error dup key: { : "user100000112053033450" }
      

            Assignee:
            kyle.erf Kyle Erf
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: