From 8ce65cab861197d98e5bbae1cb60cb0c751b4866 Mon Sep 17 00:00:00 2001 From: Lei Zhang <27994433+SWJTU-ZhangLei@users.noreply.github.com> Date: Tue, 22 Oct 2024 10:06:11 +0800 Subject: [PATCH] [chore](log) Adjust log level for replaying a batch editlog cost time(#41392) (#42182) * `replay journal cost too much time` is a counter for replaying a batch editlog it is normal that cost too much time, the warning level can make confused ## Proposed changes Issue Number: close #xxx --- fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java index 5dd5db032b..f60f4634c0 100755 --- a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java +++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java @@ -2870,8 +2870,8 @@ public class Env { } } long cost = System.currentTimeMillis() - startTime; - if (cost >= 1000) { - LOG.warn("replay journal cost too much time: {} replayedJournalId: {}", cost, replayedJournalId); + if (LOG.isDebugEnabled() && cost >= 1000) { + LOG.debug("replay journal cost too much time: {} replayedJournalId: {}", cost, replayedJournalId); } return hasLog;