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

Make locking behaviour more robust #205

Merged
merged 2 commits into from
Feb 1, 2024
Merged

Make locking behaviour more robust #205

merged 2 commits into from
Feb 1, 2024

Conversation

ThrawnCA
Copy link
Collaborator

  • Use TRUNCATE with a short locking timeout, instead of dropping and recreating a table, when data structure has not changed
  • Retry jobs that fail due to locking problems
  • Acquire write locks up front when updating resource metadata so race conditions don't cause deadlock

- Shorten the locking timeout when refreshing a resource without changing its structure
- Retry jobs that fail due to locking issues
- Request a write-lock when preparing to update resource metadata, not just a read lock,
so that we don't risk deadlocking with another process.
@ThrawnCA ThrawnCA merged commit 58be9be into master Feb 1, 2024
6 checks passed
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.

2 participants