[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
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: |