Skip to content

try to remove the share migration lock on SIGTERM - #869

Merged
micbar merged 1 commit into
mainfrom
release-lock-migration
Oct 9, 2026
Merged

micbar merged 1 commit into
mainfrom
release-lock-migration

Conversation

@micbar

@micbar micbar commented Oct 9, 2026

Copy link
Copy Markdown
Member

The test suite has issues when the share manager migration is running after a restart of the wrapper.

ReleaseLock(ctx) currently uses the same context as the migration run. That context is cancelled on SIGTERM, and here the storage is maybe already down too. So a server stopped while holding the lock leaves the lock file behind.

Use a contextWithoutCancel()

@micbar
micbar requested review from butonic and v-scharf October 9, 2026 14:09

@butonic butonic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, that is a step in the right direction ... unless the system-storage has already been shut down ...

@micbar
micbar merged commit 36d43ce into main Oct 9, 2026
19 of 20 checks passed
@micbar
micbar deleted the release-lock-migration branch October 9, 2026 14:31
@openclouders openclouders mentioned this pull request Oct 9, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants