[JAVA-284] Support replica set name in MongoClientURI and MongoClientOptions Created: 25/Feb/11 Updated: 30/Jan/15 Resolved: 27/Feb/14 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Configuration |
| Affects Version/s: | 2.5 |
| Fix Version/s: | 2.12.0, 3.0.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Brendan W. McAdams | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | rc1 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Description |
|
As in other drivers, the name of the query parameter in the URI is replicaSet. In MongoClientOptions, the slightly more descriptive property name of requiredReplicaSetName will be used. The presence of the replica set name in either place will have two effects:
|
| Comments |
| Comment by Githook User [ 30/Jan/15 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: |
| Comment by Githook User [ 29/Apr/14 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: |
| Comment by Jeffrey Yemin [ 27/Feb/14 ] |
|
Fixed in master for 2.12.0 |
| Comment by Githook User [ 27/Feb/14 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: |
| Comment by auto [ 28/Aug/13 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: |
| Comment by auto [ 23/Aug/13 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: |
| Comment by auto [ 23/Aug/13 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: |
| Comment by ian wood [ 20/Feb/13 ] |
|
fyi: in 2.10.1 MongoClientURI(String uri) currently reports "Unknown or Unsupported Option 'replicaset'" if that option is present. |
| Comment by T. Dampier [ 21/Apr/12 ] |
|
Partial fix offered here: https://github.com/mongodb/mongo-java-driver/pull/72 As of this writing, that pull request doesn't verify the name once connected, but does correctly parse the option and force a replica set (not single-server) connection. Also: is the "connect" option still part of the URI spec? I don't see it mentioned in http://www.mongodb.org/display/DOCS/Connections Is there a more definitive document? |