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

mongorestore does not correctly handle all extended json types in metadata

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.0.1
    • 3.0.2, 3.1.1
    • None
    • None
    • Kernel Tools Iteration 3.1.1
    • Not Needed
    • v3.0

    Description

      2.6 behaviour:

      $ mongorestore -d config -c changelog config/changelog.bson
      connected to: 127.0.0.1
      2015-03-19T08:31:07.496+1100 config 2/config/changelog.bson
      2015-03-19T08:31:07.496+1100 	going into namespace [config.changelog]
      2015-03-19T08:31:07.500+1100 	Created collection config.changelog with options: { "create" : "changelog", "size" : 10485760, "capped" : true }
      25528 objects found
      2015-03-19T08:31:08.492+1100 	Creating index: { key: { _id: 1 }, ns: "config.changelog", name: "_id_" }
      

      3.0.1 behaviour:

      $ mongorestore -d config -c changelog config/changelog.bson
      2015-03-19T08:32:07.279+1100	checking for collection data in config 2/config/changelog.bson
      2015-03-19T08:32:07.280+1100	reading metadata file from config 2/config/changelog.metadata.json
      2015-03-19T08:32:07.281+1100	Failed: restore error: config.changelog: error creating collection config.changelog: error running create command: exception: specify size:<n> when capped is true
      

      Attachments

        Activity

          People

            kyle.erf Kyle Erf
            andre.defrere@mongodb.com Andre de Frere
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: