[SERVER-13774] Remove migrateMemory.js Created: 28/Apr/14  Updated: 11/Jul/16  Resolved: 28/Apr/14

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 2.7.0
Fix Version/s: 2.7.0

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Operating System: ALL
Participants:
Linked BF Score: 0

 Description   

Test can fail because of the formula being used to determine which chunks to move:

https://github.com/mongodb/mongo/blob/7acafe85d9bdd63122c19ba1cca86a7f55174941/jstests/sharding/migrateMemory.js#L47

Depending on how the chunks (specifically, the number of chunks) are actually split*, it is possible to have 2 consecutive numbers that are actually bounded by the same chunk, resulting into the "that chunk is already on that shard" error. We should just remove this test since it has no useful asserts.

* Our internal chunk stats for stats are initialized with a random number so the point when it triggers the auto split is not deterministic.



 Comments   
Comment by Githook User [ 28/Apr/14 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-13774 Remove migrateMemory.js
Branch: master
https://github.com/mongodb/mongo/commit/bdfeec7c13837e7ec120c1a3512ec43143f7d778

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