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

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

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

      Unable to find source-code formatter for language: plain. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      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)

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

              Created:
              Updated:
              Resolved: