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

Add an optional per-table lock timeout #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

qdw
Copy link
Contributor

@qdw qdw commented May 18, 2023

Prior to this commit, if a long (auto)vacuum or other lock was preventing Flexible Freeze from vacuuming a table, it would wait for that lock indefinitely, or until run_min minutes elapsed (if specified).

This commit addresses the problem by adding --lock-timeout, an optional flag for specifying the timeout (in milliseconds). If Flexible Freeze can't acquire a table lock after that amount of time, it gives up and moves on to the next table.

Prior to this commit, if a long (auto)vacuum or other lock
was preventing Flexible Freeze from vacuuming a table,
it would wait for that lock indefinitely, or until
run_min minutes elapsed (if specified).

This commit addresses the problem by adding --lock-timeout,
an optional flag for specifying the timeout (in milliseconds).
If Flexible Freeze can't acquire a table lock after
that amount of time, it gives up and moves on to the next table.
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

Successfully merging this pull request may close these issues.

1 participant