-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 3.0.5, 3.1.6
-
Component/s: All Tools, mongorestore
-
None
-
Kernel Tools Iteration 7, Kernel Tools 8 08/28/15
-
Not Needed
-
v3.0
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.