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

When restoring database, index creation error terminates restore

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 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:

      { type: "LineString", coordinates: [ [ 24.6920309, 59.4035288 ], [ 24.6920309, 59.4035288 ] ] }

      , 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.

            Assignee:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Reporter:
            cal6 Kalle Volkov
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: