You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by "shoothzj (via GitHub)" <gi...@apache.org> on 2024/04/29 14:13:21 UTC
[PR] [ZOOKEEPER-4831] update slf4j from 1.x to 2.0.13, logback to 1.3.14 [zookeeper]
shoothzj opened a new pull request, #2162:
URL: https://github.com/apache/zookeeper/pull/2162
Update slf4j to 2.x, logback to 1.3.14. This is a backward-compatible change.
## slf4j
SLF4J API version 2.0.0 requires Java 8 and introduces a backward-compatible fluent logging API. By backward-compatible, we mean that existing logging frameworks do not have to be changed in order for the user to benefit from the fluent logging API.
## logback
Version 1.3.x supports Java EE, while version 1.4.x supports Jakarta EE. The two versions are feature identical.
Both 1.3.x and 1.4.x series require SLF4J 2.0.x or later.
The 1.3.x series requires Java 8 at runtime.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZOOKEEPER-4831] update slf4j from 1.x to 2.0.13, logback to 1.3.14 [zookeeper]
Posted by "shoothzj (via GitHub)" <gi...@apache.org>.
shoothzj commented on PR #2162:
URL: https://github.com/apache/zookeeper/pull/2162#issuecomment-2105408087
ping @eolivelli @maoling @tisonkun
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZOOKEEPER-4831] update slf4j from 1.x to 2.0.13, logback to 1.3.14 [zookeeper]
Posted by "shoothzj (via GitHub)" <gi...@apache.org>.
shoothzj commented on PR #2162:
URL: https://github.com/apache/zookeeper/pull/2162#issuecomment-2091507841
@eolivelli @maoling @tisonkun PTAL :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZOOKEEPER-4831] update slf4j from 1.x to 2.0.13, logback to 1.3.14 [zookeeper]
Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun commented on PR #2162:
URL: https://github.com/apache/zookeeper/pull/2162#issuecomment-2102147717
Thanks for your contribution!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZOOKEEPER-4831] update slf4j from 1.x to 2.0.13, logback to 1.3.14 [zookeeper]
Posted by "shoothzj (via GitHub)" <gi...@apache.org>.
shoothzj commented on PR #2162:
URL: https://github.com/apache/zookeeper/pull/2162#issuecomment-2092233436
@ctubbsii Thanks for your review. Fixed.
>> to updating the versions. I would suggest only doing this change in the next release, not in previous bugfixes for earlier branches.
definitely.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZOOKEEPER-4831] update slf4j from 1.x to 2.0.13, logback to 1.3.14 [zookeeper]
Posted by "shoothzj (via GitHub)" <gi...@apache.org>.
shoothzj closed pull request #2162: [ZOOKEEPER-4831] update slf4j from 1.x to 2.0.13, logback to 1.3.14
URL: https://github.com/apache/zookeeper/pull/2162
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZOOKEEPER-4831] update slf4j from 1.x to 2.0.13, logback to 1.3.14 [zookeeper]
Posted by "shoothzj (via GitHub)" <gi...@apache.org>.
shoothzj commented on PR #2162:
URL: https://github.com/apache/zookeeper/pull/2162#issuecomment-2083992581
@eolivelli @maoling @tisonkun PTAL :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZOOKEEPER-4831] update slf4j from 1.x to 2.0.13, logback to 1.3.14 [zookeeper]
Posted by "shoothzj (via GitHub)" <gi...@apache.org>.
shoothzj commented on PR #2162:
URL: https://github.com/apache/zookeeper/pull/2162#issuecomment-2102027344
@eolivelli @maoling @tisonkun PTAL, can we merge this into master branch
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZOOKEEPER-4831] update slf4j from 1.x to 2.0.13, logback to 1.3.14 [zookeeper]
Posted by "eolivelli (via GitHub)" <gi...@apache.org>.
eolivelli merged PR #2162:
URL: https://github.com/apache/zookeeper/pull/2162
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZOOKEEPER-4831] update slf4j from 1.x to 2.0.13, logback to 1.3.14 [zookeeper]
Posted by "eolivelli (via GitHub)" <gi...@apache.org>.
eolivelli commented on PR #2162:
URL: https://github.com/apache/zookeeper/pull/2162#issuecomment-2105621462
Merged thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZOOKEEPER-4831] update slf4j from 1.x to 2.0.13, logback to 1.3.14 [zookeeper]
Posted by "eolivelli (via GitHub)" <gi...@apache.org>.
eolivelli commented on PR #2162:
URL: https://github.com/apache/zookeeper/pull/2162#issuecomment-2211086125
Please ask on dev@zookeeeper.apache.org (you would have to subscribe)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZOOKEEPER-4831] update slf4j from 1.x to 2.0.13, logback to 1.3.14 [zookeeper]
Posted by "DeepikaGiri (via GitHub)" <gi...@apache.org>.
DeepikaGiri commented on PR #2162:
URL: https://github.com/apache/zookeeper/pull/2162#issuecomment-2210793418
Hi @eolivelli @shoothzj , Can you please provide the tentative date for ZooKeeper next release ?Mainly intended for CVE Fix in LogBack -[ZOOKEEPER-4825](https://issues.apache.org/jira/browse/ZOOKEEPER-4825)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [ZOOKEEPER-4831] update slf4j from 1.x to 2.0.13, logback to 1.3.14 [zookeeper]
Posted by "ctubbsii (via GitHub)" <gi...@apache.org>.
ctubbsii commented on code in PR #2162:
URL: https://github.com/apache/zookeeper/pull/2162#discussion_r1588539152
##########
zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md:
##########
@@ -436,7 +436,7 @@ in the unlikely event a recent log has become corrupted). This
can be run as a cron job on the ZooKeeper server machines to
clean up the logs daily.
- java -cp zookeeper.jar:lib/slf4j-api-1.7.30.jar:lib/logback-classic-1.2.10.jar:lib/logback-core-1.2.10.jar:conf org.apache.zookeeper.server.PurgeTxnLog <dataDir> <snapDir> -n <count>
+ java -cp zookeeper.jar:lib/slf4j-api-2.0.13.jar:lib/logback-classic-1.2.10.jar:lib/logback-core-1.2.10.jar:conf org.apache.zookeeper.server.PurgeTxnLog <dataDir> <snapDir> -n <count>
Review Comment:
A few comments about this particular documentation:
1. You updated the slf4j version here, but not the logback version
2. The documentation should probably be written to not depend on a specific version, so it doesn't need to constantly be updated.
3. Not related to your change, but people really should stop specifying class paths using `-cp`, because it makes it hard to override via environment config files, and it can result in very long command-lines (sometimes too big for the OS, or for tools like pgrep/pkill). It's better to set the `CLASSPATH` environment instead of the command-line argument, and depending on the context, to append or prepend to any existing value (just like `$PATH`). For here, for the example, it's probably enough to just keep it simple:
```suggestion
CLASSPATH='lib/*:conf' java org.apache.zookeeper.server.PurgeTxnLog <dataDir> <snapDir> -n <count>
```
##########
zookeeper-server/src/test/java/org/apache/zookeeper/test/ReconfigExceptionTest.java:
##########
@@ -48,7 +48,7 @@ public class ReconfigExceptionTest extends ZKTestCase {
// Use DigestAuthenticationProvider.base64Encode or
// run ZooKeeper jar with org.apache.zookeeper.server.auth.DigestAuthenticationProvider to generate password.
// An example:
- // java -cp zookeeper.jar:lib/slf4j-api-1.7.30.jar:lib/logback-classic-1.2.10.jar:lib/logback-core-1.2.10.jar:conf
+ // java -cp zookeeper.jar:lib/slf4j-api-2.0.13.jar:lib/logback-classic-1.2.10.jar:lib/logback-core-1.2.10.jar:conf
Review Comment:
Again, don't need the specific versions in the example.
```suggestion
// CLASSPATH='lib/*:conf' java
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org