[SERVER-6512] ReplicaSetMonitor::_checkConnection does not check upper bounds for the indexes Created: 18/Jul/12 Updated: 11/Jul/16 Resolved: 26/Jul/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 2.0.6, 2.1.2 |
| Fix Version/s: | 2.0.7, 2.2.0-rc1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Randolph Tan | Assignee: | Randolph Tan |
| Resolution: | Done | Votes: | 0 |
| Labels: | replication | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||
| Description |
|
There is no check for the nodesOffset variable inside checkConnection. This can cause race condition that can potentially result in accessing the _nodes outside of its bounds. The problem can potentially manifest when whenever members of a replica set shrinks in size. |
| Comments |
| Comment by auto [ 27/Jul/12 ] |
|
Author: {u'date': u'2012-07-27T07:13:08-07:00', u'email': u'milkie@10gen.com', u'name': u'Eric Milkie'}Message: Make sure to invalidate the cached _master index whenever the _nodes structure is modified. |
| Comment by auto [ 26/Jul/12 ] |
|
Author: {u'date': u'2012-07-23T10:58:38-07:00', u'email': u'randolph@10gen.com', u'name': u'Randolph Tan'}Message: Put back |
| Comment by auto [ 25/Jul/12 ] |
|
Author: {u'date': u'2012-07-25T07:03:23-07:00', u'email': u'greg@10gen.com', u'name': u'Greg Studer'}Message: Revert " This reverts commit d67cf16e616a888be641a548ca132353ca427919. |
| Comment by auto [ 24/Jul/12 ] |
|
Author: {u'date': u'2012-07-23T10:58:38-07:00', u'email': u'randolph@10gen.com', u'name': u'Randolph Tan'}Message: Make sure to invalidate the cached _master index whenever the _nodes structure is modified. |