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

fix standardlockservice when changelog-lock-wait-time-in-minutes is set to 0 and lock does not exist in database #4609

Conversation

jgarec
Copy link
Contributor

@jgarec jgarec commented Aug 4, 2023

Impact

  • Bug fix (non-breaking change which fixes expected existing functionality)
  • Enhancement/New feature (adds functionality without impacting existing logic)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

Fixes #4325

If changelog-lock-wait-time-in-minutes was set to 0 and there was not a lock in the database then acquireLock was not called =>
it was not possible to acquire the lock and the error message was wrong : "Could not acquire change log lock. Currently locked by UNKNOWN"

It's necessary to try at least one time to acquire the lock before waiting (or not if this parameter is set to 0) to retry.

Things to be aware of

Things to worry about

I'm not able to identify if new unit / integration tests are necessary. The current tests are still OK

Additional Context

A PR for liquibase-mongodb is already created : liquibase/liquibase-mongodb#375

@filipelautert filipelautert added the SafeToBuild Indicates that a particular PR contains changes which are safe to build using GitHub actions label Aug 7, 2023
@filipelautert filipelautert self-assigned this Aug 7, 2023
@filipelautert filipelautert merged commit 9a20d6c into liquibase:master Aug 29, 2023
43 of 57 checks passed
@filipelautert filipelautert added this to the 1NEXT milestone Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocandidate ManualTest SafeToBuild Indicates that a particular PR contains changes which are safe to build using GitHub actions TypeBug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

liquibase fails when changelog-lock-wait-time-in-minutes is set to 0 and no lock exists
3 participants