Skip to content

Conversation

@venkatsambath
Copy link
Contributor

@venkatsambath venkatsambath commented Jan 27, 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?

Changed logging level on installsnapshot notification from WARN to DEBUG. This is to avoid frequent logging on bootstapping OM.
Changed logging level on inconsistency message to DEBUG too.

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.

…ted 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.
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 a lot for working on this!

Let's use BatchLogger. It will reduce the number of log messages greatly. See https://issues.apache.org/jira/secure/attachment/13074367/1216_review.patch

@szetszwo szetszwo changed the title Log change during bootstrap RATIS-2244. Reduce the number of log messages during bootstrap Jan 29, 2025
@venkatsambath venkatsambath deleted the RATIS-2244 branch January 31, 2025 03:34
@venkatsambath
Copy link
Contributor Author

Thank you @szetszwo for your patch. it looks great. please proceed further with the fix.

@venkatsambath
Copy link
Contributor Author

Sorry. I closed this PR by mistake. I've created #1217 with the changes proposed in review patch. Thank you.

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