-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replicaset/Server stats are not own data, but read-preference's data #54
Comments
Is there any reason this might not be desired and should be behind an option to control it? |
@majormoses comment in PR. If an option is preferred, let me know and I'll get that in place. thanks |
Yes an option makes sense to me, no real cost and allow people to do things as they see fit. |
I would love to see this merged. Is there anything I can help with? |
@jindraj it looks like there are two things:
|
I resolved the conflict, if someone can provide a working test I am happy to accept it. The test if manual should be something along these lines:
|
I tried to provide the test, but I'm hitting the wall.
sadly I don't know how to resolve this. |
@jindraj thats why I ask for tests on changes I do not know how to test myself. I will try to find some time this weekend to take a closer look at the code to see if I can see why its failing. If I can figure it out I will push to that pull request and will ask for another test. |
@jindraj I took a look at the code and believe I have resolved the issue, can you please pull the branch again for another test and report back? |
I had completely forgotten about this, and just happened to notice conversations concerning this via email. I'm nearly complete working through an integration test that will only run when specified
that shows this functionality using a full mongodb replicaset brought up in docker. I assume you wouldn't want to run this full test with the other test suites normally? Or would you prefer this in another manner? Any preferences? |
Using the mongo client without :connect :direct option is returning the replSetGetStatus, and serverStatus information for whatever the read preference is set to, such as the master, and not your own information.
Example
local rs.status
output
https://gist.github.com/naemono/d9a7ef94b030d5e06b4b9dc378ba89aa
The text was updated successfully, but these errors were encountered: