You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which version and edition of Flyway are you using?
Community integration Spring Boot and Flyway 6.5.5
If this is not the latest version, can you reproduce the issue with the latest one as well?
(Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Yes
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Java API
Which database are you using (type & version)?
CockroachDB 20.1.5
Which operating system are you using?
docker based on openjdk:alpine
What did you do?
Several Kubernetes pods are being started in the same time and each pod is calling Flyway to apply migration. In rare cases, it's caused some weird race condition and the same migration is being tried to be executed twice.
What did you expect to see?
Each migration is being executed only once.
What did you see instead?
The same migration is being tried to be executed twice. The second time it's failed of course and application not able to start due to failed migration:
Which version and edition of Flyway are you using?
Community integration Spring Boot and Flyway 6.5.5
If this is not the latest version, can you reproduce the issue with the latest one as well?
(Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Yes
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Java API
Which database are you using (type & version)?
CockroachDB 20.1.5
Which operating system are you using?
docker based on openjdk:alpine
What did you do?
Several Kubernetes pods are being started in the same time and each pod is calling Flyway to apply migration. In rare cases, it's caused some weird race condition and the same migration is being tried to be executed twice.
What did you expect to see?
Each migration is being executed only once.
What did you see instead?
The same migration is being tried to be executed twice. The second time it's failed of course and application not able to start due to failed migration:
Workaround Manually remove failed migration record from flyway_schema_history table.
The text was updated successfully, but these errors were encountered: