This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 851e278c4df [chore](log) Adjust log level for replaying a batch
editlog cost time(#41392) (#42184)
851e278c4df is described below
commit 851e278c4df866f22830f5ee2309b4eea10eeb5c
Author: Lei Zhang <[email protected]>
AuthorDate: Thu Oct 24 13:29:00 2024 +0800
[chore](log) Adjust log level for replaying a batch editlog cost
time(#41392) (#42184)
* `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
<!--Describe your changes.-->
---
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 8f3b7e747b8..e4e97a0eab6 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: [email protected]
For additional commands, e-mail: [email protected]