[JAVA-799] Make it possible to get the replica set status Created: 29/Mar/13  Updated: 25/Jun/13  Resolved: 25/Jun/13

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: 2.11.0
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Andreas Hubold Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates JAVA-805 Make connection pool and connection s... Closed
Related

 Description   

It would be really useful if one could get the replica set status in the Java driver.

Please add an API to get the information as known from the Mongo Shell's {{rs.status()} function.



 Comments   
Comment by Jeffrey Yemin [ 25/Jun/13 ]

Duplicates JAVA-805

Comment by Andreas Hubold [ 29/Mar/13 ]

Thank you, that already helps a lot. But the driver's view would be even more interesting. Would be cool if it could be implemented in some future version.

Comment by Jeffrey Yemin [ 29/Mar/13 ]

If you want rs.status(), you can just run the replSetGetStatus command, e.g.:

db.command("replSetGetStatus");

If you want the driver's view of the health of the replica set (ping time, which nodes are reachable, etc), that would require a new API.

Generated at Thu Feb 08 08:53:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.