RaulGracia opened a new pull request, #3188: URL: https://github.com/apache/bookkeeper/pull/3188
### Motivation Upgrades log4j2 version to fix a problem using the log4j bridge. ### Changes Upgrade log4j2 version from `2.17.1` to `2.17.2`. The motivation is that there are multiple issues related to log4j bridge fixed in that minor version: https://logging.apache.org/log4j/2.x/changes-report.html#a2.17.2 Note that this issue should be cherry-picked to `branch-4.15`. Master Issue: #3165 ### Tests The problem was introduced in `2.17.1`. This is the result we obtained running a local Bookie with `2.17.1`: ``` bin/bookkeeper localbookie 1 2022-04-06T18:54:18,075 - WARN - [main:ServerCnxnFactory@309] - maxCnxns is not configured, using default value 0. 2022-04-06T18:54:18,250 - WARN - [main-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@1279] - An exception was thrown while closing send thread for session 0x10001aa9e8d0000. org.apache.zookeeper.ClientCnxn$EndOfStreamException: Unable to read additional data from server sessionid 0x10001aa9e8d0000, likely server has closed socket at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:77) ~[org.apache.zookeeper-zookeeper-3.6.2.jar:3.6.2] at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350) ~[org.apache.zookeeper-zookeeper-3.6.2.jar:3.6.2] at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1275) [org.apache.zookeeper-zookeeper-3.6.2.jar:3.6.2] 2022-04-06T18:54:18,905 - ERROR - [main:Journal$LastLogMark@252] - Problems reading from /tmp/bk-data/bookie0/current/lastMark (this is okay if it is the first time starting this bookie WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.apache.bookkeeper.util.NativeIO (file:/home/raul/Documents/workspace/bookkeeper-security-upgrade-new/bookkeeper/bookkeeper-dist/server/target/bookkeeper-server-4.14.3-SNAPSHOT/lib/org.apache.bookkeeper-bookkeeper-server-4.14.3-SNAPSHOT.jar) to field java.io.FileDescriptor.fd WARNING: Please consider reporting this to the maintainers of org.apache.bookkeeper.util.NativeIO WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release (NO MORE LOGS BEYOND THIS POINT) ``` After applying the current change, we see the expected logs again: ``` bin/bookkeeper localbookie 1 2022-04-06T18:57:05,103 - INFO - [main:LocalBookKeeper@458] - Using configuration file /home/raul/Documents/workspace/bookkeeper-security-upgrade-new/bookkeeper/bookkeeper-dist/server/target/bookkeeper-server-4.14.3-SNAPSHOT/conf/bk_server.conf 2022-04-06T18:57:05,110 - INFO - [main:LocalBookKeeper@90] - Running 1 bookie(s) on zk ensemble = '127.0.0.1:2181'. 2022-04-06T18:57:05,112 - INFO - [main:LocalBookKeeper@120] - Starting ZK server 2022-04-06T18:57:05,117 - INFO - [main:ZookeeperBanner@42] - 2022-04-06T18:57:05,117 - INFO - [main:ZookeeperBanner@42] - ______ _ 2022-04-06T18:57:05,117 - INFO - [main:ZookeeperBanner@42] - |___ / | | 2022-04-06T18:57:05,117 - INFO - [main:ZookeeperBanner@42] - / / ___ ___ | | __ ___ ___ _ __ ___ _ __ 2022-04-06T18:57:05,118 - INFO - [main:ZookeeperBanner@42] - / / / _ \ / _ \ | |/ / / _ \ / _ \ | '_ \ / _ \ | '__| 2022-04-06T18:57:05,118 - INFO - [main:ZookeeperBanner@42] - / /__ | (_) | | (_) | | < | __/ | __/ | |_) | | __/ | | 2022-04-06T18:57:05,118 - INFO - [main:ZookeeperBanner@42] - /_____| \___/ \___/ |_|\_\ \___| \___| | .__/ \___| |_| 2022-04-06T18:57:05,118 - INFO - [main:ZookeeperBanner@42] - | | 2022-04-06T18:57:05,118 - INFO - [main:ZookeeperBanner@42] - |_| 2022-04-06T18:57:05,118 - INFO - [main:ZookeeperBanner@42] - 2022-04-06T18:57:05,119 - INFO - [main:Environment@98] - Server environment:zookeeper.version=3.6.2--803c7f1a12f85978cb049af5e4ef23bd8b688715, built on 09/04/2020 12:44 GMT 2022-04-06T18:57:05,120 - INFO - [main:Environment@98] - Server environment:host.name=ignatius 2022-04-06T18:57:05,120 - INFO - [main:Environment@98] - Server environment:java.version=11.0.14.1 2022-04-06T18:57:05,120 - INFO - [main:Environment@98] - Server environment:java.vendor=Ubuntu 2022-04-06T18:57:05,121 - INFO - [main:Environment@98] - Server environment:java.home=/usr/lib/jvm/java-11-openjdk-amd64 ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
