mongo-rs-controller-swarm
mongo-rs-controller-swarm copied to clipboard
mongo split brain
Good Project, we test on my dev env and running sometimes, mongo_controller found logs :
pymongo.errors.OperationFailure: Our config version of 292623 is no larger than the version on 10.0.0.4:27017, which is 317746
[email protected] | INFO:__main__:Mongo service is up and running
[email protected] | INFO:__main__:Primary is: 10.0.0.3
[email protected] | INFO:__main__:To add: {'10.0.0.4'}
[email protected] | Traceback (most recent call last):
[email protected] | File "/src/replica_ctrl.py", line 314, in <module>
[email protected] | manage_replica(mongo_service, **envs)
[email protected] | File "/src/replica_ctrl.py", line 281, in manage_replica
[email protected] | update_config(primary_ip, current_member_ips, new_member_ips, mongo_port)
[email protected] | File "/src/replica_ctrl.py", line 234, in update_config
[email protected] | res = cli.admin.command("replSetReconfig", config, force=force)
[email protected] | File "/usr/local/lib/python3.6/site-packages/pymongo/database.py", line 532, in command
[email protected] | codec_options, session=session, **kwargs)
[email protected] | File "/usr/local/lib/python3.6/site-packages/pymongo/database.py", line 439, in _command
[email protected] | client=self.__client)
[email protected] | File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 496, in command
[email protected] | collation=collation)
[email protected] | File "/usr/local/lib/python3.6/site-packages/pymongo/network.py", line 125, in command
[email protected] | parse_write_concern_error=parse_write_concern_error)
[email protected] | File "/usr/local/lib/python3.6/site-packages/pymongo/helpers.py", line 146, in _check_command_response
[email protected] | raise OperationFailure(msg % errmsg, code, response)
here, mongo client connect mongod from swarm vip found data inconsistencies
hi, would you be able to describe how to replicate the issue?
thx, federico
On Wed, Jan 17, 2018 at 3:52 AM, buhe [email protected] wrote:
here, mongo client connect mongod from swarm vip found data inconsistencies
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/smartsdk/mongo-rs-controller-swarm/issues/24#issuecomment-358178971, or mute the thread https://github.com/notifications/unsubscribe-auth/AAvcAgISMd87OrLejEIbtriOEqXVUYC-ks5tLWBrgaJpZM4Rgu6I .
Any news on this issue? I was planning to give the project a try :)
me too, have someone tried it with a newer mongodb version?
we moved away from docker swarm to k8s, so the project is not maintained.