[CSHARP-508] VerifyState in MongoServer throws an exception if the replica set has added or removed members Created: 20/Jun/12  Updated: 02/Apr/15  Resolved: 01/Jul/12

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.4.2
Fix Version/s: 1.5

Type: Bug Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends

 Description   

VerifyState throws an exception if as a result of verifying an instance state a member is added or removed from the replica set, because that changes the collection while it is in the middle of enumerating over it. It should make a copy of the collection and enumerate over the copy.



 Comments   
Comment by auto [ 30/Jun/12 ]

Author:

{u'date': u'2012-06-29T15:32:00-07:00', u'email': u'robert@10gen.com', u'name': u'rstam'}

Message: CSHARP-508: VerifyState and VerifyUnknownStates now make a copy of the instances collection so that they can iterate over the instances safely.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/357e25fc110ff88c175ac0593f74ab9fba2cfdb2

Generated at Wed Feb 07 21:37:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.