[SERVER-7300] Race Condition in FailPoint::setMode Created: 09/Oct/12  Updated: 11/Jul/16  Resolved: 09/Oct/12

Status: Closed
Project: Core Server
Component/s: Internal Code, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.3.0

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

Operating System: ALL
Participants:

 Description   

It is possible to have _fpInfo be greater than zero after the spinning on while (_fpInfo.load() != 0) because slowShouldFailOpenBlock does not try to grab the lock. So

_fpInfo.store(ACTIVE_BIT);

should be an atomic bitwise OR instead.



 Comments   
Comment by auto [ 09/Oct/12 ]

Author:

{u'date': u'2012-10-09T07:20:08-07:00', u'email': u'randolph@10gen.com', u'name': u'Randolph Tan'}

Message: SERVER-7300 Race Condition in FailPoint::setMode
Branch: master
https://github.com/mongodb/mongo/commit/3642e685769b2de9d153816b6054c27f6fe044e2

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