cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

acceptance: failure in sqlalchemy test due to retry error

Open knz opened this issue 9 years ago • 6 comments

Found in: https://teamcity.cockroachdb.com/viewLog.html?tab=buildLog&buildTypeId=Cockroach_ExampleORMs&buildId=368595

[Step 2/2] Traceback (most recent call last)
[...]
[Step 2/2] sqlalchemy.exc.OperationalError: (psycopg2.extensions.TransactionRollbackError) restart transaction: HandledRetryableTxnError: TransactionRetryError: retry txn (RETRY_SERIALIZABLE): "sql txn" id=3a9084f0 key=/Table/SystemConfigSpan/Start rw=true pri=0.03555282 iso=SERIALIZABLE stat=PENDING epo=0 ts=1507108623.460698685,1 orig=1507108623.452700367,0 max=1507108623.452700367,0 wto=false rop=false seq=17

knz avatar Oct 04 '17 09:10 knz

Does anyone know what causes this error?

sibblegp avatar Mar 06 '18 22:03 sibblegp

Using flask with sqlAlchemy and cockroach db we randomly get this error it seems when doing POST or PUTS into the database.

Any suggestions or help is appreciated.

raevangregson avatar May 01 '18 15:05 raevangregson

@sibblegp @raevangregson this issue is about a particular test failure. Retriable errors are generally a thing in CockroachDB - see https://www.cockroachlabs.com/docs/stable/transactions.html#transaction-retries

andreimatei avatar May 01 '18 15:05 andreimatei

@jordanlewis for triage

andreimatei avatar Oct 04 '18 20:10 andreimatei

related? #16715

andreimatei avatar Oct 04 '18 20:10 andreimatei

Closing this for #16715.

jordanlewis avatar Oct 11 '18 20:10 jordanlewis