Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6966

Mongodump badly exports some collection

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.2.0
    • Component/s: Tools
    • Environment:
      Ubuntu 12.04 64bits
    • Linux

      mongodump produces a metadata for a collection that contains undefined parameters, that stops mongorestore.
      Exemple.
      The collection message_queue :

      > db.message_queue.stats()
      {
      "ns" : "nadb.message_queue",
      "count" : 62,
      "size" : 2840,
      "avgObjSize" : 45.806451612903224,
      "storageSize" : 4096,
      "numExtents" : 1,
      "nindexes" : 1,
      "lastExtentSize" : 4096,
      "paddingFactor" : 1,
      "systemFlags" : 0,
      "userFlags" : 0,
      "totalIndexSize" : 8176,
      "indexSizes" :

      { "time_1" : 8176 }

      ,
      "capped" : true,
      "max" : 2147483647,
      "ok" : 1
      }

      Produces this message_queue.metadata.json :
      {options :

      { "create" : "message_queue", "capped" : true, "size" : 1024, undefined }

      , indexes:[{ "v" : 1, "key" :

      { "time" : 1 }

      , "unique" : true, "ns" : "nadb.message_queue", "sparse" : true, "name" : "time_1" }]}

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            thomas.rosenblatt@gmail.com Thomas Rosenblatt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: