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

Issue with the Advisory Lock #518

Open
jageshmaharjan opened this issue Oct 28, 2022 · 0 comments
Open

Issue with the Advisory Lock #518

jageshmaharjan opened this issue Oct 28, 2022 · 0 comments

Comments

@jageshmaharjan
Copy link

asyncpg version: 0.25.0
PostgreSQL version: 12.11

We have been frequently receiving this Timeout Error

asyncio.exceptions.TimeoutError
[View similar errors](https://link.datadoghq.com/apm/error-tracking?issueId=...471-da7ad0900002)

Traceback (most recent call last):
  File /usr/local/lib/python3.9/site-packages/ddtrace/contrib/asyncpg/patch.py, line 89, in _traced_query
    return await method(*args, **kwargs)
File asyncpg/protocol/protocol.pyx, line 338, in query
asyncio.exceptions.TimeoutError

upon checking the logs, it's making an internal query
SELECT pg_advisory_unlock_all ( ) CLOSE ALL UNLISTEN * RESET ALL
on PostgreSQL database

Not sure why the tables are locking when we are only doing read operations from the db.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant