This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new c6bd9cbf9c3 [chore](log) Adjust log level for replaying a batch 
editlog cost time (#41392)
c6bd9cbf9c3 is described below

commit c6bd9cbf9c38f2ba31eee30e8de6fea3462f84d1
Author: Lei Zhang <27994433+swjtu-zhang...@users.noreply.github.com>
AuthorDate: Fri Oct 11 10:06:40 2024 +0800

    [chore](log) Adjust log level for replaying a batch editlog cost time 
(#41392)
    
    * `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
---
 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 e4e3c64ec8b..d6ccbbc7c8c 100644
--- 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
@@ -2988,8 +2988,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;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to