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

Stepdown and shutdown should abort all uncommitted transactions

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.4
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Hide

      The following hangs at shutdown:

      (function() {
          const rst = new ReplSetTest({nodes: 1});
          rst.startSet();
          rst.initiate();
          const session = rst.getPrimary().getDB("test").getMongo().startSession();
          const db = session.getDatabase("test");
      
          for (let i = 0; i < 4; i++) {
              assert.commandWorked(db.coll.insert({_id: i}, {writeConcern: {w: "majority"}}));
          }
      
          const res = assert.commandWorked(db.runCommand(
              {find: "coll", batchSize: 2, readConcern: {level: "snapshot"}, txnNumber: NumberLong(0)}));
      
          rst.stopSet();
      }());
      
      Show
      The following hangs at shutdown: (function() { const rst = new ReplSetTest({nodes: 1}); rst.startSet(); rst.initiate(); const session = rst.getPrimary().getDB( "test" ).getMongo().startSession(); const db = session.getDatabase( "test" ); for (let i = 0; i < 4; i++) { assert .commandWorked(db.coll.insert({_id: i}, {writeConcern: {w: "majority" }})); } const res = assert .commandWorked(db.runCommand( {find: "coll" , batchSize: 2, readConcern: {level: "snapshot" }, txnNumber: NumberLong(0)})); rst.stopSet(); }());
    • Storage NYC 2018-03-26

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

            Created:
            Updated:
            Resolved: