[SERVER-2419] Chunks on same server incorrectly calculate central keys for split Created: 27/Jan/11  Updated: 12/Jul/16  Resolved: 06/Mar/11

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

Type: Bug Priority: Minor - P4
Reporter: Greg Studer Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux Ubuntu SMP Thu Dec 2 02:41:37 UTC 2010 x86_64 GNU/Linux


Attachments: File diff_for_fix.diff     File shard_keycount.js    
Issue Links:
Duplicate
is duplicated by SERVER-2420 DB error when chunk moved back and forth Closed
Operating System: ALL
Participants:

 Description   

When multiple chunks are present on the same server for the same collection, the split key is automatically calculated as the key at half the total size of the index, not the size of the individual chunk. This leads to errors when the chunk size is smaller than half the total index size. Included test reproduces.



 Comments   
Comment by auto [ 07/Mar/11 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: make forcing a split work better SERVER-2419 180?
https://github.com/mongodb/mongo/commit/e521301d18cddf2765a8a392d1ecaccf7e726e20

Comment by auto [ 06/Mar/11 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: test for SERVER-2419 from greg
https://github.com/mongodb/mongo/commit/afcf141e33a7d48ac396ea53125d0d8d71a33af7

Comment by auto [ 06/Mar/11 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: make forcing a split work better SERVER-2419 180?
https://github.com/mongodb/mongo/commit/a7c5ebf735ac92db6f62c12a2e7dd4dc753fb2fe

Comment by Greg Studer [ 04/Mar/11 ]

Fix for the issue

Comment by Greg Studer [ 03/Mar/11 ]

Fix available if needed, scans full index only if bounds on index different than chunk bounds.

Generated at Thu Feb 08 02:59:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.