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

[#6537] improvement(core): Change the level of some log in LockManager and GarbageCollector from INFO to DEBUG #6539

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

yuqi1129
Copy link
Contributor

What changes were proposed in this pull request?

Change the level of log from INFO to DEBUG.

Why are the changes needed?

As the log will be show periodically, in order to reduce the size of the Gravitino server log, we need to change it from INFO to DEBUG.

Fix: #6537

Does this PR introduce any user-facing change?

N/A.

How was this patch tested?

Existing UTs and ITs.

@yuqi1129 yuqi1129 self-assigned this Feb 26, 2025
@jerqi jerqi changed the title [#6537] improvement(core): Change the level of some log in LockManager and GrabageCollector from INFO to DEBUG [#6537] improvement(core): Change the level of some log in LockManager and GarbageCollector from INFO to DEBUG Feb 26, 2025
// If the total node count is greater than the maxTreeNodeInMemory * 0.5, we will do the
// clear up in case of the memory explosion.
if (nodeCount > maxTreeNodeInMemory * 0.5) {
StopWatch watch = StopWatch.createStarted();
LOG.trace("Start to clean up the stale tree lock nodes...");
LOG.info("Start to clean up the stale tree lock nodes...");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It it ok to use info?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line will be printed only when nodeCount > maxTreeNodeInMemory * 0.5; in this case, we did need to give the user some information.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok.

Copy link
Contributor

@jerqi jerqi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@jerryshao jerryshao merged commit 8ac10ce into apache:main Feb 26, 2025
28 checks passed
@tengqm
Copy link
Contributor

tengqm commented Feb 26, 2025

nice cleanup.

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.

[Improvement] Change LockManager logging level to DEBUG
4 participants