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?
9.21.0 Community
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)
PostgreSQL 15.3
Which operating system are you using?
Kubuntu 22.04
What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)
I ran Flyway in an integration test project with logback-classic 1.4.8 and slf4j-api 2.0.7 on the classpath.
What did you expect to see?
Flyway logging via SLF4J
What did you see instead?
Flyway logging to stderr
Cause
I debugged through the issue and found that the error seems to be here – while the detection of the newer SLF4J version works fine (L.63), the result is afterwards set back to false, because the new implementation isn't returned by the ServiceLoader mechanism (empty stream -> allMatch is trivially true -> slf4j is marked as not available).
As Flyway uses the old SLF4J 1.7 API, and the check introduced in 9.16.2 only seems to be to exclude the slf4j-nop binding added to flyway-commandline, I'd suggest doing the check only for the old API as well.
The text was updated successfully, but these errors were encountered:
Please see the GH release for the release notes
Closes#3741: update mariadb-java-client to 2.7.10
improve parsing of statements containing multiple sets of parentheses
add support for mariadb 10.11
Closes#3731, Closes#3730: Make SLF4J detection also work with SLF4J 2.0
Update readmes copyright dates. Closes#3739
Bug report
Which version and edition of Flyway are you using?
9.21.0 Community
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)
PostgreSQL 15.3
Which operating system are you using?
Kubuntu 22.04
What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)
I ran Flyway in an integration test project with logback-classic 1.4.8 and slf4j-api 2.0.7 on the classpath.
What did you expect to see?
Flyway logging via SLF4J
What did you see instead?
Flyway logging to stderr
Cause
I debugged through the issue and found that the error seems to be here – while the detection of the newer SLF4J version works fine (L.63), the result is afterwards set back to
false
, because the new implementation isn't returned by theServiceLoader
mechanism (empty stream ->allMatch
is trivially true -> slf4j is marked as not available).As Flyway uses the old SLF4J 1.7 API, and the check introduced in 9.16.2 only seems to be to exclude the slf4j-nop binding added to flyway-commandline, I'd suggest doing the check only for the old API as well.
The text was updated successfully, but these errors were encountered: