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

Stepdown and shutdown should abort all uncommitted transactions

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.7.4
    • None
    • Storage
    • 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

    Attachments

      Activity

        People

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

          Dates

            Created:
            Updated:
            Resolved: