Implement ReshardingDonorWriteRouter functionality along with unit tests

XMLWordPrintableJSON

    • 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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 Tan
            Reporter:
            Blake Oler
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: