Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
4.2.13
-
None
-
None
-
ALL
-
Sharding 2021-04-05, Sharding 2021-04-19, Sharding 2021-05-03
Description
Problem Description
The return value of rs.initiate() includes $clusterTime and operationTime properties in all other server versions (4.0.x, 4.4.x, latest-alpha and 4.2.x up to 4.2.12). 4.2.13 breaks this, and subsequently also our integration tests.
Steps to Reproduce
Spin up mongod servers with a shared replset id and no other configuration. Connect to them with the mongo shell and run rs.initiate() with minimal configuration.
Expected Results
As on 4.2.12:
MongoDB Enterprise > rs.initiate({ _id: 'rs0', members: [ { _id: 0, host: 'localhost:42121', priority: 1 }, { _id: 1, host: 'localhost:42122', priority: 1 } ] })
|
{
|
"ok" : 1,
|
"$clusterTime" : {
|
"clusterTime" : Timestamp(1616176864, 1),
|
"signature" : {
|
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
|
"keyId" : NumberLong(0)
|
}
|
},
|
"operationTime" : Timestamp(1616176864, 1)
|
}
|
MongoDB Enterprise rs0:SECONDARY>
|
Actual Results
On 4.2.13:
MongoDB Enterprise > rs.initiate({ _id: 'rs0', members: [ { _id: 0, host: 'localhost:42131', priority: 1 }, { _id: 1, host: 'localhost:42132', priority: 1 } ] })
|
{ "ok" : 1 }
|
MongoDB Enterprise rs0:SECONDARY>
|
Additional Notes
Not a critical change for us, but surprising. Happens with both community and enterprise servers.
Attachments
Issue Links
- is related to
-
SERVER-56471 Donor's listDatabases response missing operationTime
-
- Closed
-
- related to
-
SERVER-47568 No keys found for HMAC in RECOVERING state
-
- Closed
-