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.
In Flyway 4.0.0 we are using callback to do validation and other tasks that need to be executed after every migration.
We would expect those callbacks to be executed in the order we give them to Flyway. However they are executed in random order.
We looked at flyway code and found that the callbacks are being put in a HashSet. We think this causes the callbacks to be put in random order (Set flywayCallbacks = new HashSet(Arrays.asList(callbacks)); in Flyway.java at 1348)
For now we can work around this issue by creating a callback that contains callbacks and executes them in the correct order, but we doubt this is a good practice.
The text was updated successfully, but these errors were encountered: