[JAVA-931] Invalidate existing primaries whenever a primary is detected Created: 18/Aug/13 Updated: 03/Apr/14 Resolved: 07/Nov/13 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Cluster Management |
| Affects Version/s: | None |
| Fix Version/s: | 2.12.0, 3.0.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Jeffrey Yemin | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
| Σ Time Spent: | Not Specified | Time Spent: | Not Specified |
| Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
| Sub-Tasks: |
|
| Description |
|
When connected to a replica set, the driver maintains a list of all the servers in the replica set, with information about each gleaned from the isMaster command. During a failover, depending on timing, the driver could end up with two primaries in this list. The driver should detect and correct this incorrect state by invalidating and attempting to reconnect with any existing primaries in the list whenever a new primary responds to isMaster. |
| Comments |
| Comment by auto [ 23/Aug/13 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: |