[CSHARP-30] Add support for detecting master/slave of a replica pair and switch connections if needed Created: 25/Mar/10 Updated: 05/Sep/10 Resolved: 09/Aug/10 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Doug Marien | Assignee: | Steve Wagner |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Using pre-built binaries from 0.082.1. |
||
| Description |
|
The driver currently makes a connection to the first server specified in the configuration but if that server happens to be the slave then mongodb returns an error of "not master" when performing a write. In a replica pair the master is determined on startup which means the master/slave designation can change around when restarting mongodb. |
| Comments |
| Comment by Steve Wagner [ 09/Aug/10 ] |
|
This feature is deprecated in MongoDB 1.6 and replaced by ReplicaSets, so we dose not start to integrating it into the driver again. For watching when ReplicaSets support are ready, you can watch http://jira.mongodb.org/browse/CSHARP-55. |