Operational Defect Database

BugZero found this defect 2432 days ago.

MongoDB | 399805

[SERVER-29949] InitialSyncerResetsOptimesOnNewAttempt unit test should set optime before starting initial syncer

Last update date:

10/30/2023

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

3.4.15

3.5.11

Description:

Info

This unit test has a slight race condition. It calls _setMyLastOptime after calling InitialSyncer::startup(). InitialSyncer::startup() schedules _startInitialSyncAttempt to be run immediately, and if that function gets run before _setMyLastOptime is called in the unit test, the assertion will fail. This can be fixed by setting the optime before the InitialSyncer is started.

Top User Comments

xgen-internal-githook commented on Tue, 24 Apr 2018 15:33:19 +0000: Author: {'email': 'william.schultz@mongodb.com', 'username': 'will62794', 'name': 'William Schultz'} Message: SERVER-29949 Fix race condition in InitialSyncerResetsOptimes unit test (cherry picked from commit e0b06a9da3c0c6071f4e636f3c3ba3e8851c5db0) Branch: v3.4 https://github.com/mongodb/mongo/commit/5390e6754a7184a97025f8a600160b9ce4ee5698 xgen-internal-githook commented on Fri, 14 Jul 2017 20:19:02 +0000: Author: {u'username': u'will62794', u'name': u'William Schultz', u'email': u'william.schultz@mongodb.com'} Message: SERVER-29949 Fix race condition in InitialSyncerResetsOptimes unit test Branch: master https://github.com/mongodb/mongo/commit/e0b06a9da3c0c6071f4e636f3c3ba3e8851c5db0

Additional Resources / Links

Share:

BugZero Risk Score

Coming soon

Status

Closed

Have you been affected by this bug?

cost-cta-background

Do you know how much operational outages are costing you?

Understand the cost to your business and how BugZero can help you reduce those costs.

Discussion

Login to read and write comments.

Have you ever...

had your data corrupted from a

VMware

bug?

Search:

...