[SERVER-45913] Racy tests in MetadataManagerTest Created: 31/Jan/20  Updated: 29/Oct/23  Resolved: 31/Jan/20

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

Type: Bug Priority: Major - P3
Reporter: Matthew Saltz (Inactive) Assignee: Matthew Saltz (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2020-02-10
Participants:
Linked BF Score: 0

 Description   

A test failure can be reliably reproduced by putting a sleep after this line. There's nothing stopping the range deletion task from succeeding before that. Since this tests a test-only function I think we can remove the test or do setup like in this other test.

The same is true here. We should fix all instances of racy !isReady assertions in this file.



 Comments   
Comment by Githook User [ 31/Jan/20 ]

Author:

{'name': 'Matthew Saltz', 'username': 'saltzm', 'email': 'matthew.saltz@mongodb.com'}

Message: SERVER-45913 Suspend range deletion for racy MetadataManager unit tests
Branch: master
https://github.com/mongodb/mongo/commit/9f61271cd1027ff787efc5b1259a7d20e446ed99

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