You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pao214
changed the title
[YSQL] YSQL crashes on txn restart with UPDATE ... RETURNING queries
[YSQL] YSQL error on txn restart with UPDATE ... RETURNING queries
Apr 17, 2024
pao214
changed the title
[YSQL] YSQL error on txn restart with UPDATE ... RETURNING queries
[YSQL] Failed txn restarts with UPDATE ... RETURNING queries
Apr 17, 2024
Summary:
### Issue
UPDATE ... REUTRNING queries fail txn restarts due to conflicts.
### Root Cause
yb_restart_portal does not reset the value of portal->holdContext to NULL.
This in turn fails the assertion in PortalCreateHoldStore.
### Impact
Only affects debug builds.
Backport-through: 2024.1
Jira: DB-10929
Test Plan:
Jenkins
yb_build.sh --java-test TestPgTransparentRestarts#testUpdateLong
Reviewers: pjain, smishra
Reviewed By: pjain
Subscribers: yql
Differential Revision: https://phorge.dev.yugabyte.com/D34242
Jira Link: DB-10929
Description
Issue
Consider the following diff
This is an update returning operation that has txn restarts because of txn conflicts with concurrent inserts.
Here is the log
Root Cause
When restarting a txn, we also restart the portal.
Below is an excerpt from
yb_restart_portal
portal->holdContext
is not assigned to NULL, making it a dangling reference.Simply assign it to NULL.
Impact
Affects debug builds.
Issue Type
kind/bug
Warning: Please confirm that this issue does not contain any sensitive information
The text was updated successfully, but these errors were encountered: