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

RATIS-2244. Reduce the number of log messages during bootstrap #1217

Merged
merged 2 commits into from
Feb 3, 2025

Conversation

venkatsambath
Copy link
Contributor

@venkatsambath venkatsambath commented Feb 1, 2025

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.

Copy link
Contributor

@szetszwo szetszwo left a 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.

@@ -45,7 +45,7 @@ default TimeDuration getBatchDuration() {

private static final class UniqueId {
private final Key key;
private final String name;
private final Object name;

private UniqueId(Key key, String name) {
Copy link
Contributor

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.

Copy link
Contributor Author

@venkatsambath venkatsambath Feb 2, 2025

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

Copy link
Contributor

@szetszwo szetszwo left a 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

@szetszwo szetszwo merged commit 2664ac8 into apache:master Feb 3, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants