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
org.flywaydb.core.api.exception.FlywayValidateException: Validate failed: Migrations have failed validation
Detected resolved migration not applied to database: 8. To ignore this migration, set -ignoreIgnoredMigrations=true. To allow executing this migration, set -outOfOrder=true.
here is what my Flyway migration history looked like before the update:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Recently, this repo was updated to start using conductor 13 and postgres-persistance now includes a new Flyway migration script:
https://github.com/Netflix/conductor-community/blob/main/persistence/postgres-persistence/src/main/resources/db/migration_postgres/V8__indexing.sql
since this version of conductor uses Orkes' postgres archive, it uses a Flyway migration here:
https://github.com/orkes-io/orkes-conductor-community/blob/main/archive/src/main/resources/db/migration_archive_postgres/V99__initial_schema.sql
This is what causes the issue:
here is what my Flyway migration history looked like before the update:
There migration V8 is not there as it was added after we deployed orkes-conductor-community.
To fix this, i first tried to add this to docker/config/config.properties:
But that did not seem to work, we still got the same error even with that setting applied.
I tried other settings to no avail, and finally tried adding that setting to this file here:
https://github.com/orkes-io/orkes-conductor-community/blob/main/archive/src/main/java/io/orkes/conductor/dao/postgres/archive/PostgresArchiveDAOConfiguration.java
This worked, but it feels a little hacky, but since the new migration does not change anything related to V99, it won't harm anything
Now, the migration history after the update:
and conductor server loads correctly
Beta Was this translation helpful? Give feedback.
All reactions