[SERVER-32886] Unnecessary sleeps during chunk migration Created: 25/Jan/18  Updated: 30/Oct/23  Resolved: 14/Feb/18

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.2.18, 3.4.10, 3.6.2
Fix Version/s: 3.4.14, 3.6.4, 3.7.3

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Janna Golden
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.6, v3.4
Sprint: Sharding 2018-02-12, Sharding 2018-02-26
Participants:
Case:

 Description   

From visual inspection of the chunk migration code, there are at least 3 places where nodes can unnecessarily sleep for up to a second:

These sleeps unnecessarily increase the length of the balancer round, pollute the logs and on top of that could actually cause more mods to accumulate on the donor, potentially increasing the duration of the critical section catch-up phase.

Most likely they are artifacts of MMAP V1 where chunk migration was intentionally slowed down in order not to interfere with live workload, but no longer make sense for WT. If we remove them we should still preserve some comparable throttle for MMAP V1.



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

Author:

{'email': 'golden.janna@gmail.com', 'name': 'jannaerin', 'username': 'jannaerin'}

Message: SERVER-32886 Remove unnecessary sleeps during chunk migration
Branch: v3.4
https://github.com/mongodb/mongo/commit/4d816381bef06ed82019089bf91cf2003d59d16f

Comment by Githook User [ 08/Mar/18 ]

Author:

{'email': 'golden.janna@gmail.com', 'name': 'jannaerin', 'username': 'jannaerin'}

Message: SERVER-32886 Remove unnecessary sleeps during chunk migration
Branch: v3.6
https://github.com/mongodb/mongo/commit/0a6d007775e948e97c0b7564303a0ba587a4e851

Comment by Githook User [ 08/Mar/18 ]

Author:

{'email': 'golden.janna@gmail.com', 'name': 'jannaerin', 'username': 'jannaerin'}

Message: SERVER-32886 Remove unneccessary sleeps in chunk migration
Branch: master
https://github.com/mongodb/mongo/commit/0d4d523af37b1acd9bb6707dc670985df82ed8b7

Comment by Githook User [ 14/Feb/18 ]

Author:

{'email': 'golden.janna@gmail.com', 'name': 'jannaerin', 'username': 'jannaerin'}

Message: SERVER-32886 Remove unnecessary sleeps during chunk migration
Branch: master
https://github.com/mongodb/mongo/commit/2dc87c711cb0bf85fdc8dd1d65b5a83e144509fa

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