-
Notifications
You must be signed in to change notification settings - Fork 439
RATIS-2244. Reduce the number of log messages during bootstrap #1217
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
Conversation
szetszwo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@venkatsambath , thanks for the update! Please see the comment inlined.
| private final String name; | ||
| private final Object name; | ||
|
|
||
| private UniqueId(Key key, String name) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the class of name to Object. I forgot to do it in my review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I've updated the class from string to object now and updated the commit. fb0b266
szetszwo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 the change looks good
When one of the Ozone OM falls back and bootstraps, the logs are printed very frequently and it rolls off 30 log files (of 200MB each) in 15 mins. Since logs are rolled off too quick, troubleshooting cause of bootstrap is becoming difficult.
What changes were proposed in this pull request?
Updated the logging to BatchLogger using the review patch from @szetszwo #1216 - I closed that pull request by mistake.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/RATIS-2244
How was this patch tested?
Logging change. Didnt create unit test for this change.