Unordered bulk insert

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Incomplete
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.2.6
    • Component/s: None
    • None
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Hi team.

      Prospect is running a PoC on Atlas and they are performing unordered bulk upsert during which they get the following error (error goes away during ordered upsert):

      MongoError: Cannot start transaction 3 on session f41666d4-5848-4af6-b6d0-4af1b7c9b3b6 - ddqot68vLpBUPnOuqFj2cdClv/dv/vF9ZVSwknYHEsE= because a newer transaction 4 has already started.
      
          at Connection.<anonymous> (/tmp/mongo-importer/node_modules/mongodb-core/lib/connection/pool.js:443:61)
      
          at Connection.emit (events.js:197:13)
      
          at processMessage (/Users/per/projects/ikea/piapi-azure-lab/mongo-importer/node_modules/mongodb-core/lib/connection/connection.js:364:10)
      
          at TLSSocket.<anonymous> (/Users/per/projects/ikea/piapi-azure-lab/mongo-importer/node_modules/mongodb-core/lib/connection/connection.js:533:15)
      
          at TLSSocket.emit (events.js:197:13)
      
          at addChunk (_stream_readable.js:288:12)
      
          at readableAddChunk (_stream_readable.js:269:11)
      
          at TLSSocket.Readable.push (_stream_readable.js:224:10)
      
          at TLSWrap.onStreamRead [as onread] (internal/stream_base_commons.js:145:17)
      
        operationTime: Timestamp { _bsontype: 'Timestamp', low_: 92, high_: 1559048689 },
      
        ok: 0,
      
        errmsg: 'Cannot start transaction 3 on session f41666d4-5848-4af6-b6d0-4af1b7c9b3b6 - ddqot68vLpBUPnOuqFj2cdClv/dv/vF9ZVSwknYHEsE= because a newer transaction 4 has already started.',
      
        code: 225,
      
        codeName: 'TransactionTooOld',
      
        '$clusterTime': {
          clusterTime: Timestamp { _bsontype: 'Timestamp', low_: 92, high_: 1559048689 },
          signature: { hash: [Binary], keyId: [Long] }
        },
      
        name: 'MongoError',
      
        [Symbol(mongoErrorContextSymbol)]: {}
      

       

            Assignee:
            Unassigned
            Reporter:
            Ivan Sobina (Inactive)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: