Skip to content

Commit

Permalink
[chore](log) Adjust log level for replaying a batch editlog cost time
Browse files Browse the repository at this point in the history
* `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
  • Loading branch information
SWJTU-ZhangLei committed Sep 27, 2024
1 parent ac7084c commit 101380b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
Original file line number Diff line number Diff line change
Expand Up @@ -2988,8 +2988,8 @@ public synchronized boolean replayJournal(long toJournalId) {
}
}
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;
Expand Down

0 comments on commit 101380b

Please sign in to comment.