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

[DocDB] Warn when unlocking a non-existent advisory lock #26180

Open
1 task done
yusong-yan opened this issue Feb 25, 2025 · 0 comments
Open
1 task done

[DocDB] Warn when unlocking a non-existent advisory lock #26180

yusong-yan opened this issue Feb 25, 2025 · 0 comments
Labels
area/docdb YugabyteDB core features kind/bug This issue is a bug priority/medium Medium priority issue status/awaiting-triage Issue awaiting triage

Comments

@yusong-yan
Copy link
Contributor

yusong-yan commented Feb 25, 2025

Jira Link: DB-15515

Description

In PostgreSQL, attempting to unlock a non-existent advisory lock triggers a warning:

postgres=# select pg_advisory_unlock(1);
WARNING:  you don't own a lock of type ExclusiveLock
 pg_advisory_unlock 
--------------------
 f
(1 row)

However, in YugabyteDB, the same operation does not produce a warning:

postgres=# select pg_advisory_unlock(1);
 pg_advisory_unlock 
--------------------
 f
(1 row)

Issue Type

kind/bug

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.
@yusong-yan yusong-yan added area/docdb YugabyteDB core features status/awaiting-triage Issue awaiting triage labels Feb 25, 2025
@yugabyte-ci yugabyte-ci added kind/bug This issue is a bug priority/medium Medium priority issue labels Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docdb YugabyteDB core features kind/bug This issue is a bug priority/medium Medium priority issue status/awaiting-triage Issue awaiting triage
Projects
None yet
Development

No branches or pull requests

2 participants