Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2915

Mongodb Transactions Unhandled Promise Rejection Error - MongoError: Retryable write with is prohibited on session

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.3
    • Component/s: Native
    • Labels:
    • Environment:
      Ubuntu 16 , Using node.js on Nest Framwork.
      Using the withTransaction Helper for Mongodb Transactions
    • Needed
    • Hide

      There is no information in the docs about this particualar mongo eror

      Show
      There is no information in the docs about this particualar mongo eror

      Using Mongodb transactions with withTransaction Helper in nodejs (nestjs framework), These errors are popping up
       
      {{ UnhandledPromiseRejectionWarning: MongoError: Retryable write with txnNumber 3552 is prohibited on session 8a19417e-8bbd-46c5-9aab-04a2cb60f406 - /C5A+ZfCloKsJhH+D
      aIABeIyRV1uALaRfamlKu9yI5I= because a newer retryable write with txnNumber 3553 has already started on this session.

      at MessageStream.messageHandler (/home/ubuntu/project/node_modules/mongodb/lib/cmap/connection.js:263:20)
      at MessageStream.emit (events.js:315:20)
      at processIncomingData (/home/ubuntu/project/node_modules/mongodb/lib/cmap/message_stream.js:144:12)
      at MessageStream._write(/home/project/node_modules/mongodb/lib/cmap/message_stream.js:42:5)
      at doWrite (_stream_writable.js:403:12)
      at writeOrBuffer (_stream_writable.js:387:5)
      at MessageStream.Writable.write (_stream_writable.js:318:11)}}

      {{}}
      Can anyone help me with what it means, or point me to any resources explaining this, there is very limited documentation for this particular error.
       
      {{}}

      {{}}

      {{}}

            Assignee:
            eric.adum@mongodb.com Eric Adum (Inactive)
            Reporter:
            mel.george@neumtech.com Mel George
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: