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

When enabling sharding in an existing collection, make sure all docs have values on the sharding keys

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.5
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • ALL

      1) create collection x
      2) add document

      { b: 1 }

      3) create index

      { a : 1 }


      4) shardcollection x

            Assignee:
            alerner Alberto Lerner
            Reporter:
            alerner Alberto Lerner
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: