[DOCS-12951] Investigate changes in SERVER-42368: Remove max shard key value size limit Created: 12/Aug/19  Updated: 13/Nov/23  Due: 20/Mar/20  Resolved: 18/Mar/20

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: 4.3.1, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-42368 Remove max shard key value size limit Closed
Related
is related to DOCS-13127 Investigate changes in SERVER-42299: ... Closed
Participants:
Days since reply: 3 years, 47 weeks ago
Epic Link: DOCS: 4.4 Server Release Work

 Description   

Description

Change Description:

Shard key value size limit is documented at https://docs.mongodb.com/manual/reference/limits/#Shard-Key-Size (and possibly elsewhere), which will need to be updated. This change should also be mentioned in the release notes.

SERVER ticket 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.

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 18/Mar/20 ]

Author:

{'email': 'kay.kim@10gen.com', 'name': 'Kay Kim', 'username': 'kay-kim'}

Message: DOCS-12951, DOCS-13127: 4.4 shard key value size, fcv upgrade/downgrade for shards
Branch: master
https://github.com/mongodb/docs/commit/580eb74530dac39751841a0699da999426320616

Generated at Thu Feb 08 08:06:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.