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

    XMLWordPrintableJSON

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: