sentry icon indicating copy to clipboard operation
sentry copied to clipboard

fix(indexer): retry write on PG deadlock

Open onewland opened this issue 2 years ago • 1 comments

Not sure of a clean way to test this, but if people want me to hack around and force a deadlock error I can try to do so

https://getsentry.atlassian.net/browse/SNS-1519

onewland avatar Sep 06 '22 22:09 onewland

i would add some sort of exponential sleep backoff here, but generally not sure if this is the sanest way to deal with those errors

does the indexer currently skip those messages, or crash entirely?

I haven't personally verified this but according to the ticket the messages get dropped (not a full crash).

onewland avatar Sep 07 '22 23:09 onewland