CollectionMetadata::keyBelongsToMe() should assert that given key is non-empty in debug builds

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      mongos enforces that documents modified in or inserted into sharded collections must have non-empty values for the shard key (though this is not enforced if mongos is bypassed). CollectionMetadata::keyBelongsToMe() could have a debug-only assert that fails the operation or terminates the process if a document is encountered that is missing the shard key.

              Assignee:
              Unassigned
              Reporter:
              J Rassi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: