Uploaded image for project: 'MongoDB ETL Tools'
  1. MongoDB ETL Tools
  2. TOOLS-767

mongorestore: error parsing metadata: call of reflect.Value.Set on zero Value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.0.5, 3.1.6
    • Fix Version/s: 3.1.7, 3.0.7
    • Component/s: All Tools, mongorestore
    • Labels:
      None
    • Backport Requested:
      v3.0
    • Documentation Changes:
      Not Needed
    • Sprint:
      Kernel Tools Iteration 7, Kernel Tools 8 08/28/15

      Description

      I want to restore an old dump (done with MongoDB 2.4.1) to Mongo 3.0.3.
      I get this error:

      2015-06-01T13:40:01.013+0200 Failed: restore error: main.xxx: error parsing metadata file main/xxx.metadata.json: reflect: call of reflect.Value.Set on zero Value

      The metadata file:

      { "options" : { "create" : "xxx", "capped" : null, "size" : null, "max" : null }, "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "main.xxx", "name" : "_id_" }, { "v" : 1, "key" : { "user" : 1 }, "ns" : "main.xxx", "sparse" : false, "name" : "user_1" }, { "v" : 1, "key" : { "uuu" : 1 }, "ns" : "main.xxx", "sparse" : false, "name" : "uuu_1" }, { "v" : 1, "key" : { "store" : 1 }, "ns" : "main.xxx", "sparse" : false, "name" : "store_1" } ] }
      

      If I remove the "null" values, it works.

        Attachments

          Activity

            People

            • Assignee:
              kyle.erf Kyle Erf
              Reporter:
              pierrre Pierre Durand
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: