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

Integrate ReshardingOplogFetcher to MovePrimaryRecipient

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Sharding NYC 2023-05-01, Sharding NYC 2023-05-15, Sharding NYC 2023-05-29

      If the onlineMovePrimary feature flag is on, begin fetching oplogs when cloning begins using the ReshardingOplogFetcher. The fetcher expects a collection UUID in its constructor, so the recipient should invariant that the list of collections to clone contains only one collection and pass its UUID to the fetcher. The oplogs should be written to a buffer that is dropped at the end of the operation or on failure. Write unit tests if possible to ensure that the integration works (e.g. that things are inserted into the buffer, or even simply that the metrics are incremented), but avoid spending time on mocking out complex parts of the system to do this (ReshardingOplogFetcher already does this in its own unit tests).

            Assignee:
            abdul.qadeer@mongodb.com Abdul Qadeer
            Reporter:
            brett.nawrocki@mongodb.com Brett Nawrocki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: