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

implement noop writes to test for primary-ship

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.11
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Major Change
    • Sprint:
      Repl 16 (06/24/16), Repl 17 (07/15/16), Repl 18 (08/05/16), Repl 2016-08-29

      Description

      If the read is successful (returns no error otherwise and all locks are released), we then:

      Generate noop writes that should be replicated to a majority of secondary nodes. When awaitReplication returns, then the primary will know it is the true primary of the set.

        Issue Links

          Activity

          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'name': u'hari devaraj', u'email': u'hari.devaraj@10gen.com'}

          Message: SERVER-24497 Linearizable read concern implemented
          Branch: master
          https://github.com/mongodb/mongo/commit/a0b7e4fc8cf224505267b2fe589975ba36f49078

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'name': u'hari devaraj', u'email': u'hari.devaraj@10gen.com'} Message: SERVER-24497 Linearizable read concern implemented Branch: master https://github.com/mongodb/mongo/commit/a0b7e4fc8cf224505267b2fe589975ba36f49078
          Hide
          hari.devaraj Hari Devaraj (Inactive) added a comment -

          Linearizable Reads require writes with write concern majority.
          If an error occurs: error statuses are passed back up without uasserts/invariants. If the noop write fails to replicate, the write concern error status returned from awaitReplicaton is turned into a LinearizableReadConcernError status with status code: 187.

          Show
          hari.devaraj Hari Devaraj (Inactive) added a comment - Linearizable Reads require writes with write concern majority. If an error occurs: error statuses are passed back up without uasserts/invariants. If the noop write fails to replicate, the write concern error status returned from awaitReplicaton is turned into a LinearizableReadConcernError status with status code: 187.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                  Agile