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

Possibility to get a non-existent key if using ReadConcern level:local when reading signing keys in ReplicaSet

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.11, 4.2.0-rc3, 4.3.1
    • Affects Version/s: 3.6.12, 4.0.8
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • v4.2, v4.0, v3.6
    • Sharding 2019-05-06, Repl 2019-06-03, Sharding 2019-06-17, Sharding 2019-07-01

      There is a possible scenario that admin.system.keys collection gets diverged and hence customer gets a signing key that does not exists which causes errors in query processing.
      The proposed fix is to use ReadConcern level:majority when reading keys

        1. test.js
          1 kB
        2. server-40535.diff
          6 kB

            Assignee:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Reporter:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: