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

Replace rollback_cmd_unrollbackable.js test with a C++ unit test

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
    • Replication

      The rollback_cmd_unrollbackable.js Javascript test creates an oplog entry of an unsupported format, inserts it into the oplog manually, and then tries to have a node roll back that oplog entry to check that it fasserts. This test case could be easily covered by a "death" test in our unit tests, in rs_rollback_test.cpp, for example.

      Furthermore, we should probably try to move away from having integration tests that manually modify the oplog, since that is a behavior that should be disallowed, and is not something that we account for when designing and testing the replication system.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            william.schultz@mongodb.com William Schultz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: