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

mongofiles creates a different index between 2.6 and 3.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.7
    • Component/s: mongofiles
    • Labels:
      None
    • Backport Requested:
      v2.6

      Description

      When uploading files with mongofiles, the following index is created in MongoDB 3.0:

      { "v" : 1, "unique" : true, "key" : { "files_id" : 1, "n" : 1 }, "name" : "files_id_1_n_1", "ns" : "test.fs.chunks" }
      

      In 2.6, the index is missing the unique attribute:

      { "v" : 1, "key" : { "files_id" : 1, "n" : 1 }, "name" : "files_id_1_n_1", "ns" : "test.fs.chunks" }
      

      This causes problems with drivers that automatically call ensureIndex with the unique index and then fail because the index exists but with different options.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-tools Backlog - Server Tools Team
              Reporter:
              msoutier Marius Soutier
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: