After merging https://github.com/lightningnetwork/lnd/pull/5484 we'll need to make sure that any DB code is aware of the reset/retry mechanism. This issue is meant to keep track of all the possible problems that should be addressed to handle DB errors and retries more gracefully. - [ ] `failIdx` in `batch/batch.go` (https://github.com/lightningnetwork/lnd/pull/5484#discussion_r674900458) - [ ] assert that the retry mechanism is working in all cases by artificially running the code in the callback twice (comment 1, https://github.com/lightningnetwork/lnd/issues/5557#issuecomment-902724058) - [ ] assert that query functions with a callback can handle duplicates if the read transaction is retried (comment 2, https://github.com/lightningnetwork/lnd/issues/5557#issuecomment-902932810)
After merging #5484 we'll need to make sure that any DB code is aware of the reset/retry mechanism.
This issue is meant to keep track of all the possible problems that should be addressed to handle DB errors and retries more gracefully.
failIdxinbatch/batch.go(etcd: enable full remote database support #5484 (comment))