zkDatabase icon indicating copy to clipboard operation
zkDatabase copied to clipboard

Transaction has been aborted

Open wonrax opened this issue 11 months ago • 0 comments

Merkle proof task and offchain rollup task in queue might fail with error Transaction has been aborted.

2025-02-06T09:22:52.746Z zkDatabase  ERROR    Error while processing document queue: MongoServerError: Transaction with { txnNumber: 49 } has been aborted.
    at Connection.sendCommand (/usr/src/app/node_modules/mongodb/lib/cmap/connection.js:296:27)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async Connection.command (/usr/src/app/node_modules/mongodb/lib/cmap/connection.js:323:26)
    at async Server.command (/usr/src/app/node_modules/mongodb/lib/sdam/server.js:170:29)
    at async RunAdminCommandOperation.execute (/usr/src/app/node_modules/mongodb/lib/operations/run_command.js:41:21)
    at async tryOperation (/usr/src/app/node_modules/mongodb/lib/operations/execute_operation.js:203:20)
    at async executeOperation (/usr/src/app/node_modules/mongodb/lib/operations/execute_operation.js:73:16)
    at async ClientSession.commitTransaction (/usr/src/app/node_modules/mongodb/lib/sessions.js:350:13)
    at async ClientSession.withTransaction (/usr/src/app/node_modules/mongodb/lib/sessions.js:563:25)
    at async Transaction.withTransaction (file:///usr/src/app/packages/storage/build/src/index.js:548:28)
    at async ClientSession.withTransaction (/usr/src/app/node_modules/mongodb/lib/sessions.js:533:30)
    at async Transaction.withTransaction (file:///usr/src/app/packages/storage/build/src/index.js:548:28)
    at async ModelGenericQueue.acquireNextTaskInQueue (file:///usr/src/app/packages/storage/build/src/index.js:695:28)
    at async file:///usr/src/app/packages/mina-service/build/src/index.js:725:34
    at async Backoff.run (file:///usr/src/app/packages/mina-service/build/src/index.js:51:27)
    at async RollupOffChainService.run (file:///usr/src/app/packages/mina-service/build/src/index.js:723:9)
    at async Object.payload (file:///usr/src/app/packages/mina-service/build/src/index.js:759:13) {
  errorResponse: {
    errorLabels: [ 'TransientTransactionError' ],
    ok: 0,
    errmsg: 'Transaction with { txnNumber: 49 } has been aborted.',
    code: 251,
    codeName: 'NoSuchTransaction',
    '$clusterTime': {
      clusterTime: new Timestamp({ t: 1738833772, i: 2 }),
      signature: {
        hash: Binary.createFromBase64('plkm6cbsqDUTEAt5MKaEBmYtY2E=', 0),
        keyId: new Long('7431046858127966215')
      }
    },
    operationTime: new Timestamp({ t: 1738833772, i: 2 })
  },
  ok: 0,
  code: 251,
  codeName: 'NoSuchTransaction',
  '$clusterTime': {
    clusterTime: new Timestamp({ t: 1738833772, i: 2 }),
    signature: {
      hash: Binary.createFromBase64('plkm6cbsqDUTEAt5MKaEBmYtY2E=', 0),
      keyId: new Long('7431046858127966215')
    }
  },
  operationTime: new Timestamp({ t: 1738833772, i: 2 }),
  [Symbol(errorLabels)]: Set(1) { 'TransientTransactionError' }
}

wonrax avatar Feb 06 '25 05:02 wonrax