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

Update C++ tests for ReshardingOplogApplicationRules::applyOperation() to test it directly

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.0.0-rc0
    • None
    • Sharding
    • None
    • Fully Compatible
    • Sharding 2021-04-19
    • 1

    Description

      The ReshardingOplogApplicationRules class is currently tested in C++ through these tests cases in resharding_oplog_applier_test.cpp. Resharding's oplog application rules behave the same when called from ReshardingOplogApplier::applyUntilCloneFinishedTs() as they do when called from ReshardingOplogApplier::applyUntilDone(). Testing the behavior through ReshardingOplogApplier adds an extra layer of orchestration and complexity for something that has already been split out into its own class. We should instead rewrite these C++ tests to call ReshardingOplogApplicationRules::applyOperation() directly.

      Attachments

        Activity

          People

            max.hirschhorn@mongodb.com Max Hirschhorn
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: