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

Handle checking whether recipients should be added to oplog entries even after recovery

    • Fully Compatible
    • Sharding 2020-11-02, Sharding 2020-11-16, Sharding 2020-11-30

      What needs to be done:

      1. Create a method in the ScopedCollectionDescription class named something along the lines of shouldAppendReshardingRecipientOplogEntryForWrite that will return a bool. It will contain this logic (up to you to assess – should it also contain the logic in documentBelongsToMe(), or should documentBelongsToMe() be a separate call inside of getDestinedRecipient?
      2. Also pull into this method the check that the coordinator state is >= preparingToDonate and < mirroring. This can be done by inspecting the ScopedCollectionDescription's reshardingFields.
      3. Call this new method from getDestinedRecipient(), replacing the current call to getDonorFields().
      4. Figure out tests that are related to this functionality and mock scenarios to verify that the above state constraints are properly met.

            Assignee:
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Reporter:
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: