|
I can reproduce this on the current MacOS latest build:
MongoDB shell version v3.7.2-169-g67d04f1
|
git version: 67d04f1a286b23ea824bdfb7042462d7da1b515d
|
OpenSSL version: OpenSSL 0.9.8zh 14 Jan 2016
|
allocator: system
|
modules: enterprise
|
build environment:
|
distarch: x86_64
|
target_arch: x86_64
|
Start a replica set with authentication and an arbiter. Then connect directly to the arbiter:
$ mongo 'mongodb://localhost:27019/'
|
MongoDB shell version v3.6.2
|
connecting to: mongodb://localhost:27019/
|
MongoDB server version: 3.7.2-169-g67d04f1
|
WARNING: shell and server versions do not match
|
Error while trying to show server startup warnings: Cache Reader No keys found for HMAC that is valid for time: { ts: Timestamp(1519682766, 1) } with id: 0
|
Note: Cannot determine if automation is active
|
> db.adminCommand({isMaster:1})
|
{
|
"operationTime" : Timestamp(1519682766, 1),
|
"ok" : 0,
|
"errmsg" : "Cache Reader No keys found for HMAC that is valid for time: { ts: Timestamp(1519682766, 1) } with id: 0",
|
"code" : 211,
|
"codeName" : "KeyNotFound",
|
"$clusterTime" : {
|
"clusterTime" : Timestamp(1519682766, 1),
|
"signature" : {
|
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
|
"keyId" : NumberLong(0)
|
}
|
}
|
}
|
Without sending an lsid the isMaster succeeds. I demonstrated this by using a 3.4.0 shell which does not add $clusterTime to commands:
$ mongodb-osx-x86_64-enterprise-3.4.0/bin/mongo 'mongodb://localhost:27019/'
|
MongoDB shell version v3.4.0
|
connecting to: mongodb://localhost:27019/
|
MongoDB server version: 3.7.2-169-g67d04f1
|
WARNING: shell and server versions do not match
|
MongoDB Enterprise e624e6b9-40e4-423c-aa84-c85cabb7853a:ARBITER> db.adminCommand({isMaster:1})
|
{
|
"hosts" : [
|
"localhost:27017",
|
"localhost:27018"
|
],
|
"arbiters" : [
|
"localhost:27019"
|
],
|
"setName" : "e624e6b9-40e4-423c-aa84-c85cabb7853a",
|
"setVersion" : 1,
|
"ismaster" : false,
|
"secondary" : false,
|
"primary" : "localhost:27017",
|
"arbiterOnly" : true,
|
"me" : "localhost:27019",
|
"lastWrite" : {
|
"opTime" : {
|
"ts" : Timestamp(1519682756, 1),
|
"t" : NumberLong(2)
|
},
|
"lastWriteDate" : ISODate("2018-02-26T22:05:56Z"),
|
"majorityOpTime" : {
|
"ts" : Timestamp(1519682756, 1),
|
"t" : NumberLong(2)
|
},
|
"majorityWriteDate" : ISODate("2018-02-26T22:05:56Z")
|
},
|
"maxBsonObjectSize" : 16777216,
|
"maxMessageSizeBytes" : 48000000,
|
"maxWriteBatchSize" : 100000,
|
"localTime" : ISODate("2018-02-26T22:06:01.969Z"),
|
"logicalSessionTimeoutMinutes" : 30,
|
"minWireVersion" : 0,
|
"maxWireVersion" : 7,
|
"readOnly" : false,
|
"ok" : 1,
|
"operationTime" : Timestamp(1519682756, 1)
|
}
|
|