-
Notifications
You must be signed in to change notification settings - Fork 27
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
flaky webserver 02 unit tests times-out #7008
Comments
The problem is that in the tests tear-down the postgres database tables are dropped but there are some transactions still opened which makes the db to lock. Using SELECT pid, query, state, wait_event_type, wait_event, application_name
FROM pg_stat_activity
WHERE state = 'idle in transaction'; and we can close them with SELECT pg_terminate_backend(pid)
FROM pg_stat_activity
WHERE state = 'idle in transaction'; by enabling
we see in the logs that two processes (i.e. here 85 and 91) are locked
Further debugging indicates that this issue may stem from a fire-and-forget task still running while the tests attempt to drop the tables. The task keeps its transaction open, while the test teardown mechanism tries to delete the affected table. This remains a hypothesis and requires further investigation. For now, we've added in #7018 a command in the teardown process to close any remaining transactions, allowing the test to proceed. However, this could be a sign of an underlying bug in the system. |
In one of my PRs I also have it inside of |
The text was updated successfully, but these errors were encountered: