Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error "Attempt to release transaction in the wrong state" #4538

Open
dobesv opened this issue May 20, 2020 · 1 comment
Open

Getting error "Attempt to release transaction in the wrong state" #4538

dobesv opened this issue May 20, 2020 · 1 comment
Assignees
Labels
area/ysql Yugabyte SQL (YSQL) community/request Issues created by external users kind/bug This issue is a bug priority/medium Medium priority issue

Comments

@dobesv
Copy link

dobesv commented May 20, 2020

Jira Link: DB-2548
I have a job that is copying records from mongodb into yugabyte.

From time to time this script fails, getting an error back from yugabyte:

Remote error: Illegal state (yb/client/transaction.cc:518): Attempt to release transaction in the wrong state 55266d2c-bebb-4542-9a5b-f0e272d62a3f: kAborted\nCode: XX000

The operation is an upsert - INSERT ... ON CONFLICT UPDATE ...

I think it probably is a bug since I haven't done anything related to releasing transactions and so forth.

I don't have any practical way to reproduce this, it might take hours for my script to encounter it. But this issue can serve to track that this is occurring, maybe someone who understands the meaning of this error might think of a way to reproduce it using some kind of load inducing script.

@yugabyte-ci yugabyte-ci added the community/request Issues created by external users label May 20, 2020
@dobesv
Copy link
Author

dobesv commented May 20, 2020

For now I'll workaround this by retrying the upsert if I get this error.

@rkarthik007 rkarthik007 added area/docdb YugabyteDB core features area/ysql Yugabyte SQL (YSQL) labels May 20, 2020
@yugabyte-ci yugabyte-ci added kind/bug This issue is a bug priority/medium Medium priority issue labels Jun 9, 2022
@yugabyte-ci yugabyte-ci removed the area/docdb YugabyteDB core features label Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ysql Yugabyte SQL (YSQL) community/request Issues created by external users kind/bug This issue is a bug priority/medium Medium priority issue
Projects
Status: No status
Development

No branches or pull requests

7 participants