[YSQL] Unneccessary lock with concurrent read and write transactions #24856
Labels
area/ysql
Yugabyte SQL (YSQL)
kind/enhancement
This is an enhancement of an existing feature
priority/medium
Medium priority issue
status/awaiting-triage
Issue awaiting triage
Jira Link: DB-13972
Description
There is a case Yugabytes create unnecessary lock when there is a concurrent read and write transaction when isolation level is serializable:
Prepare:
T1:
Before t1 commit, start t2:
Now t2 hangs. But it's better not since t1 hasn't do any write yet and most likely won't since the
select
doesn't hint withfor update
. It wouldn't be too late to abort if t1 actually write something later.I understand the current behavior doesn't violates any correctness guarantee. Just something can be improved for better performance.
Issue Type
kind/enhancement
Warning: Please confirm that this issue does not contain any sensitive information
The text was updated successfully, but these errors were encountered: