-
Type: Task
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.0.3
-
Component/s: mongorestore
-
None
-
Environment:Ubuntu x64
For some reason I have 2.6 table where there is some recoverable error in geo index.
Now, trying to upgrade to 3.0 / wireTiger, when importing, I get error:
===
2015-05-28T22:59:24.045+0300 Failed: restore error: mydb.lanecollections: error creating indexes for mydb.lanecollections: createIndex error: exception: Can't extract geo keys: { _id: ObjectId('5417eaf5f5a2cc5e6080a43c'), line:
, start_location: [ 539308.20195574, 6585269.98355083 ], end_location: [ 539308.20195574, 6585269.98355083 ], width: 0.5, preferred_percentile: 0.5, neighbours: [] } GeoJSON LineString must have at least 2 vertices: [ [ 24.6920309, 59.4035288 ], [ 24.6920309, 59.4035288 ] ]
===
It would not be of a great problem otherwise, since the collection is not used any more. But since it breaks the restore process, no matter the parameters I use.
Since there already is an option to continue on errors, this situation should obey the option and continue without creating the index.