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

Mongorestore: ns name too long, max size is 128

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0-rc1
    • Component/s: mongorestore
    • Labels:
      None
    • Environment:
      Linux 2.6.21, x64. MongoDB running with auth.

      Description

      My Mongo database has few indexes with a custom name, because there are too many fields in them to generate a name automatically without failing with "ns name too long" error.

      When I try to restore this database from a backup using mongorestore - it fails with the this very error ("ns name too long, max size is 128"). It seems like mongorestore tries to generate index names based on their content rather than just restore whatever name was actually used in a database.

        Attachments

          Activity

            People

            Assignee:
            kyle.erf Kyle Erf
            Reporter:
            freetonik Rakhim Davletkaliyev
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: