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

Remove max shard key value size limit

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.3.1
    • Sharding
    • None
    • Minor Change
    • Sharding 2019-08-12

    Description

      Shard key values have a max size limit of 512 bytes which is enforced on mongos when writing new documents (e.g. for inserts) and when validating the split points when committing a chunk split.

      Because of this, if a user refined the shard key of their collection to include a field all documents have large values for, they would be unable split their chunks because all possible split points would be over the limit. To avoid this scenario without scanning the documents in a collection before refining the collection's shard key and now that that limit on index keys has been lifted (PM-284), this limit should be removed.

      Attachments

        Issue Links

          Activity

            People

              jamie.heppenstall@mongodb.com James Heppenstall (Inactive)
              jack.mulrow@mongodb.com Jack Mulrow
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: