Skip to content

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