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 e900594935d [branch-3.0]Fix losing audit log when statistics queue is 
full  (#52700)
e900594935d is described below

commit e900594935d3bf9f1e4973b613aaaf3806987e1d
Author: wangbo <[email protected]>
AuthorDate: Mon Jul 7 14:45:25 2025 +0800

    [branch-3.0]Fix losing audit log when statistics queue is full  (#52700)
    
    ### What problem does this PR solve?
    
    pick #47358
    Issue Number: close #xx
---
 .../resource/workloadschedpolicy/WorkloadRuntimeStatusMgr.java     | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/resource/workloadschedpolicy/WorkloadRuntimeStatusMgr.java
 
b/fe/fe-core/src/main/java/org/apache/doris/resource/workloadschedpolicy/WorkloadRuntimeStatusMgr.java
index 0c2e4f458bc..cb8d2bbaaac 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/resource/workloadschedpolicy/WorkloadRuntimeStatusMgr.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/resource/workloadschedpolicy/WorkloadRuntimeStatusMgr.java
@@ -109,11 +109,12 @@ public class WorkloadRuntimeStatusMgr extends 
MasterDaemon {
     public void submitFinishQueryToAudit(AuditEvent event) {
         queryAuditEventLogWriteLock();
         try {
-            if (queryAuditEventList.size() >= 
Config.audit_event_log_queue_size) {
+            if (queryAuditEventList.size() > 
Config.audit_event_log_queue_size) {
                 LOG.warn("audit log event queue size {} is full, this may 
cause audit log missing statistics."
-                                + "you can check whether qps is too high or "
-                                + "set audit_event_log_queue_size to a larger 
value in fe.conf. query id: {}",
+                                + "you can check whether qps is too high "
+                                + "or reset audit_event_log_queue_size. query 
id: {}",
                         queryAuditEventList.size(), event.queryId);
+                Env.getCurrentAuditEventProcessor().handleAuditEvent(event);
                 return;
             }
             event.pushToAuditLogQueueTime = System.currentTimeMillis();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to