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

fix read_operations_during_rollback.js

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.12
    • None
    • Replication
    • None
    • Fully Compatible
    • ALL
    • 0

    Description

      This does not necessarily throw if the error message is returned fast enough before the connection is killed.

      On transition to rollback, we mark operations killed first then close the connections which calls _performPostMemberStateUpdateAction. So if the error message gets back to the client during that window, client doesn't necessarily throw but instead gets InterruptedDueToReplStateChange.

      This is new behavior introduced in this commit (SERVER-41035).

      So we need to change the test not to assert.throw.

      Attachments

        Activity

          People

            lingzhi.deng@mongodb.com Lingzhi Deng
            lingzhi.deng@mongodb.com Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: