Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-19789

filemd5 command does not jive with hashed shard keys

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 3.0.4
    • None
    • GridFS, Sharding
    • None
    • Fully Compatible
    • ALL

    Description

      The filemd5 command fails when the fs.chunks collection is using a hashed shard key:

      {
          "ok" : 0,
          "errmsg" : "GridFS fs.chunks collection must be sharded on either {files_id:1} or {files_id:1, n:1}"
      }
      

      Offhand, this seems like the command is being too strict in checking the shard key or index.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jmikola@mongodb.com Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: