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

snapshot_cursor_shutdown_stepdown.js should not perform transactions on secondaries

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0-rc1, 4.1.1
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • v4.0
    • Repl 2018-06-04
    • 0

      This test triggers a stepdown that aborts a transaction, then checks that the cursor opened in the transaction was killed. It does so by running a getMore on that cursor in a transaction and checking for the CursorNotFound error code. There is no reason that the getMore needs to be done in a transaction, and this transaction occasionally aborts while trying to acquire the global lock. Since read-only transactions are not yet supported on secondaries, we should address the test failure by not running the getMore in a transaction.

            Assignee:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Reporter:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: