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

mongo 7.0 compatibility issue with arbiter #270

Open
figachek opened this issue Sep 18, 2024 · 0 comments
Open

mongo 7.0 compatibility issue with arbiter #270

figachek opened this issue Sep 18, 2024 · 0 comments

Comments

@figachek
Copy link

Hello.
Environment:
pymongo 4.8.0
mongod 7.0.14

when we try to check remote mongo arbiter host:
./check_mongodb.py -A memory -W 1 -C 1 -P 27017 -H arbiter_host -u user -p password

in result = con.admin.command("ismaster") we have:

The value of result is: {'topologyVersion': {'processId': ObjectId('66cf62f2b99c7dc571401122'), 'counter': 7}, 'hosts': ['slave_host:27017', 'master_host:27017'], 'arbiters': ['arbiter_host:27017'], 'setName': 'rs0', 'setVersion': 31, 'isWritablePrimary': True, 'secondary': False, 'primary': 'master_host:27017', 'me': 'master_host:27017', 'electionId': ObjectId('7fffffff000000000000005e'), 'lastWrite': {'opTime': {'ts': Timestamp(1726669197, 1), 't': 94}, 'lastWriteDate': datetime.datetime(2024, 9, 18, 14, 19, 57), 'majorityOpTime': {'ts': Timestamp(1726669197, 1), 't': 94}, 'majorityWriteDate': datetime.datetime(2024, 9, 18, 14, 19, 57)}, 'maxBsonObjectSize': 16777216, 'maxMessageSizeBytes': 48000000, 'maxWriteBatchSize': 100000, 'localTime': datetime.datetime(2024, 9, 18, 14, 20, 0, 658000), 'logicalSessionTimeoutMinutes': 30, 'connectionId': 4272759, 'minWireVersion': 0, 'maxWireVersion': 21, 'readOnly': False, 'ok': 1.0, '$clusterTime': {'clusterTime': Timestamp(1726669197, 1), 'signature': {'hash': b'\xf5h\x93O\xeb2Ee\x8d9\x16\xd9Q\x99\xc9-Xo\xec>', 'keyId': 7376314462082433025}}, 'operationTime': Timestamp(1726669197, 1)}

expected to receive: 'arbiterOnly': True, but nothing

ismaster is depricated since 4.4.2 https://www.mongodb.com/docs/v4.4/reference/command/isMaster/
but using the result = con.admin.command("hello") https://www.mongodb.com/docs/manual/reference/command/hello/
give us the same result.

We can't determine arbiter host

Please help to check arbiter
Thanks

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

No branches or pull requests

1 participant