Remove log4j from bookkeeper#3225
Conversation
|
rerun failure checks |
|
@RaulGracia PTAL as well |
nicoloboschi
left a comment
There was a problem hiding this comment.
do we need log4j configuration file for ZookKeeper in standalone mode?
|
Thanks for your attention, but zooKeeper uses logback now. I think it's over this pr, but I will try to see if it works. if it's not working, I will fix it in another pr. |
@zymap how do you run this code? |
|
@nicoloboschi zookeeper prints log well using |
|
I fetched your branch, and using |
f5a6082 to
7461a47
Compare
|
@zymap My bad. I missed somethings, it's fixed now, please take a look again |
|
@shoothzj Now it has zookeeper logs, but the bookie logs look like still missing. Startup with your branch: Startup with a released bookie: You can see there are missing bookie logs in this branch. Like BookieJournal, Bookie and so on. |
ad27343 to
28c36f0
Compare
28c36f0 to
4dbdce7
Compare
|
rerun failure checks |
RaulGracia
left a comment
There was a problem hiding this comment.
LGTM, I have tried localbookie and I can see the logs correctly.
just a couple of points:
- Why don't we set a more reasonable log rolling value in this PR? Is anything forcing us to use 2GB, which is noted to be excessive?
- This PR is touching multiple components, so I hope that you have checked that all them are logging properly (apart from the validation we have done using localbookie)
Another question: is this going to be cherry picked to 4.15? I remember that there is some logging problem that is blocking the release, right?
| <Policies> | ||
| <TimeBasedTriggeringPolicy modulate="true"/> | ||
| </Policies> | ||
| <DefaultRolloverStrategy max="2147483647"/> |
There was a problem hiding this comment.
If this is not reasonable, why don't we set some reasonable value now? (in the orders of tens of MBs may be ok rather than 2GB, right?)
|
@RaulGracia I will test other components. I have done test |
|
I have restarted the jobs again. |
|
rerun failure checks |
|
great work @shoothzj |


Changes
the complicate
log4j.propertiesin conf directory were convert using https://logging.apache.org/log4j/2.x/log4j-1.2-api/apidocs/org/apache/log4j/config/Log4j1ConfigurationConverter.html