Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-33585

Do not return $clusterTime when no keys are available

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.5, 3.7.4
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v3.6
    • Sprint:
      Sharding 2018-03-26, Sharding 2018-04-09

      Description

      The problem

      There are occasional errors while starting up mongodb replica set detailed in SERVER-31916.
      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
      https://github.com/mongodb/mongo/blob/r3.7.2/src/mongo/db/service_entry_point_mongod.cpp#L289
      returns the dummy signature from mongod if the keys are not there yet. Its necessary for the proper replica set start up.

      The solution

      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-31916

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              misha.tyulenev Misha Tyulenev
              Reporter:
              misha.tyulenev Misha Tyulenev
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: