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.
- has to be done after
-
SERVER-58914 Create ReshardingDonorWriteRouter class with function stubs
- Closed
- has to be done before
-
SERVER-58918 Replace getDestinedRecipient() in the code-base with calls into the ReshardingDonorWriteRouter object
- Closed
- is duplicated by
-
SERVER-57666 Convert getDestinedRecipient() in resharding_util to be a class method
- Closed
-
SERVER-58918 Replace getDestinedRecipient() in the code-base with calls into the ReshardingDonorWriteRouter object
- Closed