dojo icon indicating copy to clipboard operation
dojo copied to clipboard

Tx failing silently when failing to commit db tx

Open notV4l opened this issue 1 year ago • 1 comments

Describe the bug When katana is out of space for db, this error occurs : ERROR node: failed to mine block: failed to commit db transaction: Input/output error

It seems the tx fails silently & waitForTransaction timeout

There might be a similar issue with other DatabaseError.s

Expected behavior tx should be rejected with useful error msg

notV4l avatar Mar 11 '24 20:03 notV4l

I don't think the expected behaviour is correct. This is an issue that is beyond the scope of the RPC specs, and the rejected status is not meant to describe unexpected cases like this, as this issue is completely unrelated to the tx itself.

One way I could think of to handle hardware issues like this, is to retry the mining process again, instead of just dropping the block when it failed to mine.

kariy avatar Mar 12 '24 13:03 kariy