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

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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 2021-04-19
    • 1

      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.

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

              Created:
              Updated:
              Resolved: