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

mongodump and mongoexport fail to dump autoIndexId false capped collection due to invalid hint

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.0.4
    • Fix Version/s: 4.2.0, 4.3.1
    • Component/s: mongodump, mongoexport
    • Labels:
      None

      Description

      When attempting to dump a local capped collections, mongodump fails with the following message:

      mongodump --db local --collection oplog
      2018-12-13T09:15:35.156+0100    writing local.oplog to
      2018-12-13T09:15:35.157+0100    Failed: error writing data for collection `local.oplog` to disk: error reading collection: error processing query: ns=local.oplogTree: $and
      Sort: {}
      Proj: {}
      planner returned error: bad hint
      

      (The oplog collection in this example was restored previously from another environment, and is not named rs.oplog on purpose)

        Attachments

          Activity

            People

            Assignee:
            david.golden David Golden
            Reporter:
            kai.orend Kai Orend
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: