-
Notifications
You must be signed in to change notification settings - Fork 11
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
Lock DB Upgrades #160
base: main
Are you sure you want to change the base?
Lock DB Upgrades #160
Conversation
Well no form of db locking is going to work: |
Is this a known problem @magik6k or a nice-to-have? |
A problem that we didn't have any case that manifested in actual trouble, but I do foresee it being an issue at some point given that schema changes in YB do tend to take a while and are likely to be a large source of edge-cases given what YB does with postgres.
It's usually much longer, in my deployments most migrations take 2-10s, depending on what they do |
https://yugabytedb.tips/suppress-the-error/ advisory locks are not supported. I found out yesterday the hard way after using them for libp2p table. |
I'd say we shelve this. If it becomes a problem, maybe the locks will arrive then and this code will be a drop-in fix. |
One alternative is to have an upgrade 'task' that gets scheduled, deduped, claimed by those only with that version, and ran that way, but we can't start the task engine with any other task. It sounds more difficult. |
I believe I see a good way to do this:
|
Allow max of 1 db upgrader at a time.