tiernacityT
Convex Community2y ago
4 replies
tiernacity

OCC and retries and errors, oh my

Hey Convex I'm trying to understand the behaviour of optimistic locking and retries, as it applies to my scenario and some errors I'm seeing. Your docs (here) say a mutation will get "several retries" before an error is thrown. It's possible to get more information about what "several retries" means?

I'm also confused about whether the below log message is a (soft) warning or a (hard) error/failure. When I inspect my data in the dashboard, it looks like my mutation succeeded - so I think it's a warning? What's the retry behaviour and what are the thresholds/limits?

$20/03/2024, 11:53:21 [CONVEX M(<mutation_name>)] Documents read from or written to the "<table_name>" table changed while this mutation was being run and on every subsequent retry. A call to "scheduled_job_mutation_success" changed the document with ID "<id>. See https://docs.convex.dev/error#1"
This page explains specific errors thrown by Convex.
Errors and Warnings | Convex Developer Hub
Was this page helpful?