[SERVER-13990] Improved warning for low cardinality keys Created: 19/May/14  Updated: 19/Sep/15  Resolved: 04/Jun/15

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.1.4

Type: Improvement Priority: Major - P3
Reporter: Charlie Page Assignee: David Hows
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Participants:

 Description   

mongo estimates the "max" reasonable chunk size and warns if that chunk size exceeds that, in a effort to detect low cardinality keys. The error message is:

Sat May 17 16:10:09.335 [conn164120] warning: chunk is larger than 1024 bytes because of key { field1: "value1", field2: value2 }

A more informative error message like: "warning possible low cardinality for shard key detected <database>.<collection>" would be helpful.



 Comments   
Comment by Githook User [ 03/Jun/15 ]

Author:

{u'username': u'daveh86', u'name': u'daveh86', u'email': u'howsdav@gmail.com'}

Message: SERVER-13990
Branch: master
https://github.com/mongodb/mongo/commit/1c4270f508a12eb8aed1fbaf1228cd53c7a357cd

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