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

Implement ReshardingDonorWriteRouter functionality along with unit tests

    • Fully Compatible
    • v5.1, v5.0
    • Sharding 2021-08-09, Sharding 2021-09-06, Sharding 2021-09-20, Sharding 2021-10-04, Sharding 2021-10-18
    • 0
    • 1

      Tasks for this ticket

      Implementation

      • Implement the constructors and getters in the class.
        • getDestinedRecipient should follow the behavior already defined in the free-standing function here. Note that many of the variables retrieved here will now already exist on the ReshardingDonorWriteRouter class.
        • As part of implementing getDestinedRecipient, use TypeCollectionDonorFields::getTempReshardingNss() rather than calling constructTemporaryReshardingNss(). This is because the donor fields will already have the name constructed, so there's no need to re-calculate it.

      Unit tests

      • Change this unit test to test your new class instead of the free-standing getDestinedRecipient() function. The devil is in the details here – if this is intimidating reach out to blake.oler to walk through how this would be done.

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            blake.oler@mongodb.com Blake Oler
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: