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

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 4.0.4
    • 4.2.0, 4.3.1
    • mongodump, mongoexport
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: