Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumped slf4j and other logging related infrastructure. #2999

Merged
merged 1 commit into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ image::https://raw.githubusercontent.com/apache/tinkerpop/master/docs/static/ima
[[release-4-0-0]]
=== TinkerPop 4.0.0 (NOT OFFICIALLY RELEASED YET)


* Bumped SLF4j to 2.0.16.

[[release-4-0-0-beta-1]]
=== TinkerPop 4.0.0-beta.1 (January 17, 2025)
Expand Down
7 changes: 7 additions & 0 deletions docs/src/upgrade/release-4.x.x.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ complete list of all the modifications that are part of this release.

=== Upgrading for Users

==== SLF4j 2.x

TinkerPop has generally upgraded to SLF4j 2.x which brings with it some important changes to log initialization which
may affect user applications that are upgrading from TinkerPop 3.x. Please see the
[SLF4j documentation](https://www.slf4j.org/faq.html#changesInVersion200) that explains the differences and how they
might apply.

=== Upgrading for Providers

==== Graph System Providers
Expand Down
11 changes: 7 additions & 4 deletions gremlin-console/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ limitations under the License.
<artifactId>tinkergraph-gremlin</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</dependency>
<!-- commons-codec is a dependency of httpclient - excluded in root pom to bring all commons-codec versions inline -->
<dependency>
<groupId>commons-codec</groupId>
Expand Down Expand Up @@ -235,6 +231,13 @@ limitations under the License.
<shadedPattern>io.shaded.netty</shadedPattern>
</relocation>
</relocations>
<!-- exclude jdk21 classes for now -->
<filters>
<filter>
<artifact>ch.qos.logback:logback-core</artifact>
<excludes>versions/21/**</excludes>
</filter>
</filters>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer"></transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
Expand Down
7 changes: 3 additions & 4 deletions gremlin-console/src/main/static/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ MIT Licenses

The Apache TinkerPop project bundles the following components under the MIT License:

JCL 1.1.1 implemented over SLF4J (org.slf4j:jcl-over-slf4j:1.7.25 - http://www.slf4j.org) - for details, see licenses/slf4j
SLF4J API Module (org.slf4j:slf4j-api:1.7.25 - http://www.slf4j.org) - for details, see licenses/slf4j
SLF4J API Module (org.slf4j:slf4j-api:2.0.16 - http://www.slf4j.org) - for details, see licenses/slf4j
Foundation stylesheet for CodeRay (http://foundation.zurb.com) - for details, see licenses/foundation
normalize.css 2.1.2 (http://necolas.github.io/normalize.css/) - for details, see licenses/normalize

Expand All @@ -238,5 +237,5 @@ The Apache TinkerPop project bundles the following components under the ISC Lice

The Apache TinkerPop project bundles the following components under the Eclipse Public License 1.0:

logback-core (ch.qos.logback:logback-core:1.2.3 - https://logback.qos.ch) - for details, see licenses/logback
logback-classic (ch.qos.logback:logback-classic:1.2.3 - https://logback.qos.ch) - for details, see licenses/logback
logback-core (ch.qos.logback:logback-core:1.3.15 - https://logback.qos.ch) - for details, see licenses/logback
logback-classic (ch.qos.logback:logback-classic:1.3.15 - https://logback.qos.ch) - for details, see licenses/logback
12 changes: 7 additions & 5 deletions gremlin-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,21 @@ limitations under the License.
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-configuration2</artifactId>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- commons-configuration2 requires beanutils because we rely on file loaders -->
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.9.4</version>
<version>1.10.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Expand Down
3 changes: 1 addition & 2 deletions gremlin-driver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,8 @@ limitations under the License.
<artifactSet>
<!-- exclude logging stuff from uberjar - shading prevents proper logger initialization -->
<excludes>
<exclude>ch.qos.logback:logback-classic</exclude>
<exclude>ch.qos.logback:*</exclude>
<exclude>org.slf4j:slf4j-api</exclude>
<exclude>org.slf4j:jcl-over-slf4j</exclude>
</excludes>
</artifactSet>
<relocations>
Expand Down
6 changes: 3 additions & 3 deletions gremlin-driver/src/main/static/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ MIT Licenses

The Apache TinkerPop project bundles the following components under the MIT License:

SLF4J API Module (org.slf4j:slf4j-api:1.7.25 - http://www.slf4j.org)
SLF4J API Module (org.slf4j:slf4j-api:2.0.16 - http://www.slf4j.org)
- shaded to org.shaded.slf4j
- for details, see licenses/slf4j

Expand All @@ -231,5 +231,5 @@ Other Licenses

The Apache TinkerPop project bundles the following components under the Eclipse Public License 1.0:

logback-core (ch.qos.logback:logback-core:1.2.3 - https://logback.qos.ch) - for details, see licenses/logback
logback-classic (ch.qos.logback:logback-classic:1.2.3 - https://logback.qos.ch) - for details, see licenses/logback
logback-core (ch.qos.logback:logback-core:1.3.15 - https://logback.qos.ch) - for details, see licenses/logback
logback-classic (ch.qos.logback:logback-classic:1.3.15 - https://logback.qos.ch) - for details, see licenses/logback
7 changes: 3 additions & 4 deletions gremlin-server/src/main/static/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ MIT Licenses

The Apache TinkerPop project bundles the following components under the MIT License:

JCL 1.1.1 implemented over SLF4J (org.slf4j:jcl-over-slf4j:1.7.25 - http://www.slf4j.org) - for details, see licenses/slf4j
SLF4J API Module (org.slf4j:slf4j-api:1.7.25 - http://www.slf4j.org) - for details, see licenses/slf4j
SLF4J API Module (org.slf4j:slf4j-api:2.0.16 - http://www.slf4j.org) - for details, see licenses/slf4j
Foundation stylesheet for CodeRay (http://foundation.zurb.com) - for details, see licenses/foundation
normalize.css 2.1.2 (http://necolas.github.io/normalize.css/) - for details, see licenses/normalize

Expand All @@ -238,5 +237,5 @@ The Apache TinkerPop project bundles the following components under the ISC Lice

The Apache TinkerPop project bundles the following components under the Eclipse Public License 1.0:

logback-core (ch.qos.logback:logback-core:1.2.3 - https://logback.qos.ch) - for details, see licenses/logback
logback-classic (ch.qos.logback:logback-classic:1.2.3 - https://logback.qos.ch) - for details, see licenses/logback
logback-core (ch.qos.logback:logback-core:1.3.15 - https://logback.qos.ch) - for details, see licenses/logback
logback-classic (ch.qos.logback:logback-classic:1.3.15 - https://logback.qos.ch) - for details, see licenses/logback
4 changes: 0 additions & 4 deletions gremlin-tools/gremlin-socket-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>
<dependency>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions gremlin-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>
<!-- TEST -->
<dependency>
<groupId>org.apache.tinkerpop</groupId>
Expand Down
13 changes: 13 additions & 0 deletions hadoop-gremlin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ limitations under the License.
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
<exclusion>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
</exclusion>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
<exclusion>
<groupId>com.nimbusds</groupId>
<artifactId>nimbus-jose-jwt</artifactId>
Expand Down Expand Up @@ -140,6 +148,11 @@ limitations under the License.
<artifactId>guava</artifactId>
<version>27.0-jre</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.3.4</version>
</dependency>
<!-- use jackson 2.13.5 to fit better with spark where Scala module 2.13.4 requires Jackson Databind version >= 2.13.0 and < 2.14.0 -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public HadoopConfiguration(final Configuration configuration) {
this.copy(configuration);
}

@Override
protected boolean containsValueInternal(final Object o) {
return properties.containsValue(o);
}

@Override
protected Iterator<String> getKeysInternal() {
return properties.keySet().iterator();
Expand Down
20 changes: 10 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ limitations under the License.
<antlr4.version>4.9.1</antlr4.version>
<caffeine.version>2.3.1</caffeine.version>
<commons.collections.version>4.4</commons.collections.version>
<commons.configuration.version>2.9.0</commons.configuration.version>
<commons.configuration.version>2.11.0</commons.configuration.version>
<commons.lang.version>2.6</commons.lang.version>
<commons.io.version>2.8.0</commons.io.version>
<commons.lang3.version>3.12.0</commons.lang3.version>
<commons.lang3.version>3.17.0</commons.lang3.version>
<commons.text.version>1.10.0</commons.text.version>
<cucumber.version>6.11.0</cucumber.version>
<exp4j.version>0.4.8</exp4j.version>
Expand All @@ -170,11 +170,11 @@ limitations under the License.
<jbcrypt.version>0.4</jbcrypt.version>
<junit.version>4.13.1</junit.version>
<kerby.version>2.0.3</kerby.version>
<logback.version>1.2.13</logback.version>
<logback.version>1.3.15</logback.version>
<metrics.version>3.0.2</metrics.version>
<mockito.version>3.10.0</mockito.version>
<netty.version>4.1.101.Final</netty.version>
<slf4j.version>1.7.25</slf4j.version>
<slf4j.version>2.0.16</slf4j.version>
<snakeyaml.version>2.0</snakeyaml.version>
<spark.version>3.5.4</spark.version>
<awssdk.version>2.29.3</awssdk.version>
Expand Down Expand Up @@ -622,6 +622,7 @@ limitations under the License.
<argLine>
-Dlogback.configuration=${logback-test.properties}
-Dlog4j.configuration=${log4j-test.properties}
-Dslf4j.provider=ch.qos.logback.classic.spi.LogbackServiceProvider
-Dbuild.dir=${project.build.directory}
-Dis.testing=true -Djava.net.preferIPv4Stack=true ${suresafeArgs}
${jdk17JvmArgs}
Expand Down Expand Up @@ -650,6 +651,7 @@ limitations under the License.
<argLine>
-Dlogback.configuration=${logback-test.properties}
-Dlog4j.configuration=${log4j-test.properties}
-Dslf4j.provider=ch.qos.logback.classic.spi.LogbackServiceProvider
-Dhost=localhost -Dport=8182
-Dbuild.dir=${project.build.directory} -Dis.testing=true
-Djava.net.preferIPv4Stack=true ${suresafeArgs}
Expand Down Expand Up @@ -707,7 +709,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.4.1</version>
<version>3.6.0</version>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
Expand Down Expand Up @@ -889,11 +891,6 @@ limitations under the License.
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand Down Expand Up @@ -1973,6 +1970,7 @@ limitations under the License.
<argLine>
-Dlogback.configuration=${logback-silent.properties}
-Dlog4j.configuration=${log4j-silent.properties}
-Dslf4j.provider=ch.qos.logback.classic.spi.LogbackServiceProvider
-Dbuild.dir=${project.build.directory} -Dis.testing=true
-Djava.net.preferIPv4Stack=true ${suresafeArgs}
${jdk17JvmArgs}
Expand Down Expand Up @@ -2081,6 +2079,7 @@ limitations under the License.
<configuration>
<argLine>@{surefireArgLine} -Dlogback.configuration=${logback-test.properties}
-Dlog4j.configuration=${log4j-test.properties}
-Dslf4j.provider=ch.qos.logback.classic.spi.LogbackServiceProvider
-Dbuild.dir=${project.build.directory} -Dis.testing=true ${suresafeArgs}
-Djava.net.preferIPv4Stack=true
</argLine>
Expand All @@ -2092,6 +2091,7 @@ limitations under the License.
<configuration>
<argLine>@{failsafeArgLine} -Dlogback.configuration=${logback-test.properties}
-Dlog4j.configuration=${log4j-test.properties} -Dhost=localhost -Dport=8182
-Dslf4j.provider=ch.qos.logback.classic.spi.LogbackServiceProvider
-Dbuild.dir=${project.build.directory} -Dis.testing=true ${suresafeArgs}
-Djava.net.preferIPv4Stack=true
</argLine>
Expand Down
9 changes: 0 additions & 9 deletions spark-gremlin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,6 @@ limitations under the License.
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
<exclusion>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
Expand Down Expand Up @@ -191,11 +187,6 @@ limitations under the License.
<groupId>org.xerial.snappy</groupId>
<artifactId>snappy-java</artifactId>
</exclusion>
<!-- Excluding this log4j binding as it leads to NoSuchMethodErrors -->
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
</exclusion>
<!-- prefer TinkerPop's netty -->
<exclusion>
<groupId>io.netty</groupId>
Expand Down
6 changes: 6 additions & 0 deletions sparql-gremlin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ limitations under the License.
<artifactId>apache-jena-libs</artifactId>
<type>pom</type>
<version>3.12.0</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.tinkerpop</groupId>
Expand Down