Comment on A race condition in Aurora RDSparentComments−robben12349moMy cluster recently started to failover every few days whenever it experiences the load to trigger scale up from 1-2 to 20+ acu.And then I also encountered errors just like op in my app layer about trying to execute a write query via read-only transaction.The workaround so far is to invalidate connection on error. When app reconnects the cluster write endpoint correctly leads to current primary.
Comments
My cluster recently started to failover every few days whenever it experiences the load to trigger scale up from 1-2 to 20+ acu.
And then I also encountered errors just like op in my app layer about trying to execute a write query via read-only transaction.
The workaround so far is to invalidate connection on error. When app reconnects the cluster write endpoint correctly leads to current primary.