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

no_disconnect_on_stepdown.js should not strictly test the number of operations killed

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Repl 2022-06-27, Repl 2022-07-11, Repl 2022-08-08, Repl 2022-08-22, Repl 2022-09-05, Repl 2022-09-19, Repl 2022-07-25, Repl 2022-10-03, Repl 2022-10-17
    • 12

      As the server code keeps evolving, there may be any number of operations started by the primary when it steps up. no_disconnect_on_stepdown.js was written under the assumption that there weren't any operations started by the primary itself.

      In this test, we
      1) step up a primary
      2) issue a write that hangs
      3) step down the primary
      4) assert that exactly one operation was killed

      The assertion breaks if the primary itself launched a few operations on step up. When that's the case, we may kill more than one operation.

      We can change the assertion to be "at least one operation is killed" and we can make sure the operation was killed with the right error code.

            Assignee:
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Reporter:
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: