[JAVA-1806] Regression on Mongo.getReplicateStatus().getMaster() Created: 08/May/15 Updated: 23/Jun/15 Resolved: 23/Jun/15 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | 2.13.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Luc Boudreau | Assignee: | Ross Lawley |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Description |
|
We migrated the Java driver version from 2.11.1 to 2.13 and a call to Mongo.getReplicateStatus().getMaster() does not return the ServerAddress anymore; instead we get null. This happens on MongoDB 2.6 with the Java driver version 2.13. Our client is configured like so:
|
| Comments |
| Comment by Jeffrey Yemin [ 23/Jun/15 ] |
|
As we haven't heard back from you in some time, I'm going to close this issue, but if you have any more information I'm happy to re-open it. |
| Comment by Jeffrey Yemin [ 11/May/15 ] |
|
Hi Luc, in addition to what you provided, please also let us know which MongoClient constructor the application is calling and what arguments are being passed to it (besides the MongoClientOptions, which you already provided). |
| Comment by Luc Boudreau [ 11/May/15 ] |
|
Ross, one of our guys has tried the option requiredReplicaSetName and has reported the following. ------- I was able to populate that option, still got the same issue. The value I used is rs0 which [the systems admin] gave to me. I get a different connection error if I set it to something else, so I have high confidence that rs0 is the correct value. |
| Comment by Luc Boudreau [ 08/May/15 ] |
|
Attached are the configuration options we use on the cluster side, along with a status printout. I'm not sure if that's what you need, so let me know if not and one of our team will look into providing the required infos. |
| Comment by Ross Lawley [ 08/May/15 ] |
|
Hi lucboudreau From your MongoClientOptions you have requiredReplicaSetName=null can you confirm you have connected to a replicaSet and provided the replicaSetName and that you are not directly connecting to a single node? Also from the API docs getMaster() returns the ServerAddress of master or null if theres no current master. This is the same behaviour as in 2.11.x Ross |