yugabyte-db icon indicating copy to clipboard operation
yugabyte-db copied to clipboard

[YSQL][SQLsmith] ERROR: Operation failed. Try again: [Operation failed. Try again (yb/tablet/transaction_participant.cc:296): Unknown transaction, could be recently aborted (pgsql error 40001)]

Open def- opened this issue 3 years ago • 3 comments

Jira Link: DB-866

Description

Sporadic SQLsmith failure during UPDATEs, can't reproduce:

CREATE TABLE test_yb (col int);

update public.test_yb set 
  col = public.test_yb.col
returning 
  public.test_yb.col as c0, 
  (select pg_catalog.max(amopstrategy) from pg_catalog.pg_amop)
     as c1, 
  (select pg_catalog.stddev_pop(heap_blks_read) from pg_catalog.pg_statio_user_tables)
     as c2, 
  public.test_yb.col as c3, 
  public.test_yb.col as c4, 
  public.test_yb.col as c5, 
  public.test_yb.col as c6;

Failed with:

ERROR:  Operation failed. Try again: [Operation failed. Try again (yb/tablet/transaction_participant.cc:296): Unknown transaction, could be recently aborted: 40d74095-d58f-40a6-83f5-8367f9503a10 (pgsql error 40001)]

def- avatar Jan 26 '22 14:01 def-

I'm Getting the same issue

  • Yugabyte Version yugabyte:2.14.1.0-b36

backendArchitect avatar Aug 26 '22 04:08 backendArchitect

Having this error while running migrations on Sequelize

ERROR: SequelizeDatabaseError: Operation failed. Try again: Unknown transaction, could be recently aborted: e1371625-734d-4d0e-a769-c1dfb7e61e01

williamoliveira avatar Sep 13 '22 18:09 williamoliveira

I'm also seeing this during upgrade testing from 2.12.4.2-b1 to 2.17.1.0-b290 when verifying objects at the same time: https://phabricator.dev.yugabyte.com/D20539

Operation failed. Try again: Unknown transaction, could be recently aborted: b807985f-7f10-494e-b52a-38c7ace57a20

Seems easier to reproduce there.

def- avatar Dec 12 '22 09:12 def-