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

Make error message that object doesn't have full shard key include the object fields

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • None

    Description

      In the compare method of ShardKeyPattern in shardkey.cpp, there are 2 assertion messages (10198 and 10199) for when the mongos encounters an object without the shard key. That error message reports only that there are fields of the shard key missing, with no information about what fields were provided. The message should the field names that are present (perhaps at a higher logging verbosity).

      Attachments

        Activity

          People

            spencer@mongodb.com Spencer Brody (Inactive)
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: