[SERVER-57475] ShardingTest.stop must join top-level chunk migrations Created: 04/Jun/21  Updated: 29/Oct/23  Resolved: 10/Jun/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 5.0.0, 5.1.0, 4.4.6
Fix Version/s: 4.4.7, 5.0.0-rc2, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Pierlauro Sciarelli
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0, v4.4
Sprint: Sharding EMEA 2021-06-14
Participants:
Linked BF Score: 49

 Description   

The SharingTest stop method is calling the check orphans hook without previously ensuring that top chunk migrations triggered by the chunk splitter have finished.

As a result, the following race condition can happen when the balancer is active:



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 16/Jun/21 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-57475 (missing import) ShardingTest.stop must join top-level chunk migrations
Branch: v5.0
https://github.com/mongodb/mongo/commit/91e0a56ce3eb2780d7c5947b6f2718a412c7a822

Comment by Githook User [ 16/Jun/21 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-57475 ShardingTest.stop must join top-level chunk migrations
Branch: v4.4
https://github.com/mongodb/mongo/commit/16e278b6d3a5322ffd08bd605b66905035b70fb4

Comment by Githook User [ 15/Jun/21 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-57475 ShardingTest.stop must join top-level chunk migrations
Branch: v5.0
https://github.com/mongodb/mongo/commit/75011d291e4382e65c0e20568dbe2e63e4b2b75c

Comment by Githook User [ 10/Jun/21 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-57475 ShardingTest.stop must join top-level chunk migrations
Branch: master
https://github.com/mongodb/mongo/commit/f6ca20c9b81a0b839be71fddcacd9f3147d8b717

Comment by Githook User [ 10/Jun/21 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-57475 ShardingTest.stop must join top-level chunk migrations
Branch: master
https://github.com/mongodb/mongo/commit/0b8ac00f8d05b42aa70614114b3cafa29e02b4bd

Generated at Thu Feb 08 05:41:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.