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

Make donor's "data sync" function do the "start blocking" write

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Sharding 2020-07-27, Sharding 2020-08-10

      After the "data sync" function adds the MigratingTenantAccessBlocker to MigratingTenantAccessBlockerByPrefix, it should update the donor's state machine doc's "state" to "blocking".

      For now, the update can be done using DBDirectClient, see example.

      (SERVER-49180 will modify the update so that it is done at a reserved OpTime and also sets "blockTimestamp" to the reserved OpTime's Timestamp.)

      Add a jstest that calling donorStartMigration causes the state machine doc's "state" to get updated to "blocking."

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: