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

Bug: "conenct to DB" feature can block upgrades #2356

Open
ankush opened this issue Dec 12, 2024 · 2 comments
Open

Bug: "conenct to DB" feature can block upgrades #2356

ankush opened this issue Dec 12, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ankush
Copy link
Member

ankush commented Dec 12, 2024

  1. Connect to DB and read something. Now you have a shared lock on table metadata. Leave this connection open and go for a smoke chaas break.
  2. Your colleague is now trying to update, but that table will get stuck on the metadata lock.

Fix: Check if any timeouts can help reduce the dangers of this. performance_schema.metadata_locks allows checking the current lock but that might be too complex.

@ankush ankush added the bug Something isn't working label Dec 12, 2024
@ankush
Copy link
Member Author

ankush commented Dec 12, 2024

https://mariadb.com/kb/en/server-system-variables/#lock_wait_timeout

Drop this from 1 day to 5 minutes maybe

@tanmoysrt tanmoysrt self-assigned this Dec 12, 2024
@ankush
Copy link
Member Author

ankush commented Dec 12, 2024

Or possibly timeout the DB connections via proxysql. They are used for reads 99% of the time, so it doesn't matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants