Migration breaks due to java.io.IOException: Mark invalid #2875
Which version and edition of Flyway are you using?
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)
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Which database are you using (type & version)?
Which operating system are you using?
Windows (locally) / Linux (CI Build with Jenkins)
What did you do?
Before running integration tests with jUnit we create the database schema from scratch. There are 912 script files at the moment.
What did you expect to see?
All migrations are applied and the tests are started.
This works absolutely fine for the previous versions I used:
What did you see instead?
When using version 6.5.0 the migration always breaks at script number 46 with the following error message:
This seems to be the interesting part:
The text was updated successfully, but these errors were encountered:
The script itself is not problematic. The execution with versions < 6.5.0 work just fine, all 900+ scripts are executed. As soon as I switch to version 6.5.0 in my pom.xml the error occurs. I have tried it several times.
I know that the version has changed, because flyway prints some log statements which include the version number
Can confirm this issue is in version 6.5.0 and believe it is related to the fix for #2853 . Was able to reproduce the issue with a small sql for postgres with placeholders
When I provide the placeholder values 'John', 'Doe' and 'Ireland' respectively I get the exception reported above. I think this is because those placeholder values make the script 245 characters long, 55 less than its original 300. The