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

Modify no_disconnect_on_stepdown.js such that it test the write operations are killed during step down.

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.8
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • Repl 2019-02-11

      All the CRUD operations (including linearizable read concern) in no_disconnect_on_stepdown.js test, are
      taking the failpoints before we acquire RSTL lock. As a result step down does not kill those write operations.

      For eg., consider insert operations, hangDuringBatchInsert failpoint got enabled at line at line 354 whereas we acquire the rstl lock only at line 371.

      Currently, no_disconnect_on_stepdown test is testing only closing connection part and not killing operations on step down path. So, add new fail points in those CRUD operations such that the fail points are enabled after holding rstl lock and step down kills those operations and operations get an error code as ErrorCodes::InterruptedDueToStepDown.

      Also, worth mentioning that currently we already have a test for linearizable read concern which tests killing operations on step down path.

            Assignee:
            matthew.russotto@mongodb.com Matthew Russotto
            Reporter:
            suganthi.mani@mongodb.com Suganthi Mani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: