shlogg · Early preview
Franck Pachot @franckpachot

YugabyteDB Error: Serialization Failure Due To Concurrent Update

YugabyteDB error 'could not serialize access due to concurrent update' occurs when reads & writes conflict. Understand isolation levels (read committed, repeatable read) & consistent states to prevent errors.

The following error message from YugabyteDB may not be clear if you don't know how isolation levels and read/write consistency works in YugabyteDB:

pq: could not serialize access due to concurrent update (query layer retry isn't possible because data was already sent, if this is the read committed isolation (or) the first statement in repeatable read/ serializable isolation transaction, consider increasing the tserver gflag ysql_output_buffer_size)

Here is an explanation I've given to a user, which may help others get the whole picture.
Your application performs a transaction that involves b...