Database error: "sql: transaction has already been committed or rolled back"

We’ve seen this error before in relation to transaction contention related to slow I/O, see