Skip to content
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

Hotfix/replset status #244

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

kagahd
Copy link

@kagahd kagahd commented Mar 21, 2019

check_replset_state returned an empty message in case of mongodb's rs.status() returned an error object.
For example, that was the case when mongod was not running with --replSet or also when the mongod node was not (yet/more) member of a replica set.
Also, instead to map all possible mongodb error messages, it's better to return them directly. This way, you are safe when mongodb introduces new or alters existing error messages in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant