There are occasional errors while starting up mongodb replica set detailed in
The question is if the change similar to the shell fix to wait for the clusterTime signature should be implemented in all drivers or if its possible to fix in the server.
On the server side this call
returns the dummy signature from mongod if the keys are not there yet. Its necessary for the proper replica set start up.
Its ok to not return $clusterTime if there are no keys available. The internal clients always use the internal user to communicate to each other - its a different code path. Returning no signature to external clients only in the case when auth is on will fix problems in
SERVER-34843 Mongod can return operationTime greater than $clusterTime
- is related to
SERVER-31916 Initial request to a shardsvr mongod can return a clustertime signed with the null key
- mentioned in