interledger-deprecated / ilp-kit

Everything needed to create a ledger and connect it to the Interledger
https://interledgerjs.github.io/ilp-kit/apidoc/
74 stars 39 forks source link

wallet - when payment repeat time very low #86

Closed elmurci closed 7 years ago

elmurci commented 8 years ago

When setting the payment repeat time very low payments fail. Instead of retrying or failing gracefully it breaks.

UTION_CONDITION", "EXPIRES_DTTM", "LEDGER", "PROPOSED_DTTM", "STATUS_ID", "TRANSFER_UUID") values (DEFAULT, $1, $2, $3, $4, $5, $6) - could not serialize access due to read/write dependencies among transactions
[ledger]     at Connection.parseE (/home/javi/ilp-kit/node_modules/pg/lib/connection.js:539:11)
[ledger]     at Connection.parseMessage (/home/javi/ilp-kit/node_modules/pg/lib/connection.js:366:17)
[ledger]     at Socket.<anonymous> (/home/javi/ilp-kit/node_modules/pg/lib/connection.js:105:22)
[ledger]     at emitOne (events.js:96:13)
[ledger]     at Socket.emit (events.js:188:7)
[ledger]     at readableAddChunk (_stream_readable.js:176:18)
[ledger]     at Socket.Readable.push (_stream_readable.js:134:10)
[ledger]     at TCP.onread (net.js:548:20)
[ledger]   name: 'error',
[ledger]   length: 267,
[ledger]   severity: 'ERROR',
[ledger]   code: '40001',
[ledger]   detail: 'Reason code: Canceled on identification as a pivot, during write.',
[ledger]   hint: 'The transaction might succeed if retried.',
vhpoet commented 8 years ago

@elmurci what was the repeat time on this?

elmurci commented 8 years ago

360 ms

michielbdejong commented 7 years ago

This sounds like a duplicate of https://github.com/interledgerjs/five-bells-ledger/issues/402 - please reopen if this is still reproducable.