Skip to content

Commit 7cf4aa5

Browse files
authored
Upgrade versions for slf4j libs from "1.7.36" to "2.0.11" (#134)
Problems: No SLF4J providers were found in both K8s pods and tests Current error: ``` % k logs hoptimator-operator-deployment-7dc9886f4d-cpx4x SLF4J(W): No SLF4J providers were found. SLF4J(W): Defaulting to no-operation (NOP) logger implementation SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details. SLF4J(W): Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x or earlier. SLF4J(W): Ignoring binding found at [jar:file:/home/hoptimator-operator-integration/lib/slf4j-simple-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class] ``` Solution: Upgrade versions for slf4j libs from "1.7.36" to "2.0.11" Currently all projects, which depends on libs slf4j*:1.7.36", depends on "org.apache.calcite:calcite-*:1.38.0". The "calcite-*:1.38.0" itself depends on "org.slf4j:slf4j-api:2.0.11". So we need to upgrade slf4j versions to make them compatible. E.g. org.slf4j:slf4j-api:2.0.11 is used due to this dependency chain: +--- project :hoptimator-operator | +--- project :hoptimator-avro | | \--- org.apache.calcite:calcite-core:1.38.0 | | +--- org.apache.calcite:calcite-linq4j:1.38.0 | | +--- com.jayway.jsonpath:json-path:2.9.0 | | | +--- net.minidev:json-smart:2.5.0 | | | | \--- net.minidev:accessors-smart:2.5.0 | | | | \--- org.ow2.asm:asm:9.3 | | | \--- org.slf4j:slf4j-api:2.0.11
1 parent 0dcd5ed commit 7cf4aa5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ junit = "junit:junit:4.12"
2626
kafka-clients = "org.apache.kafka:kafka-clients:3.2.0"
2727
kubernetes-client = "io.kubernetes:client-java:18.0.0"
2828
kubernetes-extended-client = "io.kubernetes:client-java-extended:18.0.0"
29-
slf4j-simple = "org.slf4j:slf4j-simple:1.7.36"
30-
slf4j-api = "org.slf4j:slf4j-api:1.7.36"
29+
slf4j-simple = "org.slf4j:slf4j-simple:2.0.11"
30+
slf4j-api = "org.slf4j:slf4j-api:2.0.11"
3131
sqlline = "sqlline:sqlline:1.12.0"
3232
quidem = "net.hydromatic:quidem:0.11"
3333
venice = "com.linkedin.venice:venice-common:0.4.376"

hoptimator-k8s/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ dependencies {
2020
testImplementation 'org.junit.jupiter:junit-jupiter'
2121
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
2222
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
23+
testRuntimeOnly libs.slf4j.simple
2324
}
2425

2526
test {

0 commit comments

Comments
 (0)