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

filemd5 command does not jive with hashed shard keys

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.4
    • Component/s: GridFS, Sharding
    • None
    • Fully Compatible
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: