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

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 4514652aa2a [fix](profile) Fix clean profile (#45838)
4514652aa2a is described below

commit 4514652aa2a963640d95c3a1c22aad460ac6560a
Author: zhiqiang <[email protected]>
AuthorDate: Tue Dec 24 14:25:03 2024 +0800

    [fix](profile) Fix clean profile (#45838)
    
    ### What problem does this PR solve?
    Clean all profile command does not clean runtime profile. Makes runtime
    profile leak, and memory can not be released.
    
    Problem Summary:
    
    
![img_v3_02hs_62c4ed81-fe1f-423f-ba92-a1762af5162g](https://github.com/user-attachments/assets/4cec62a5-9077-4e36-91a8-29e5fedd4560)
    After clean all profile, summary profile is clear, but runtime profile
    and counter still exists.
    
    
![img_v3_02hs_4de10ca2-b878-4722-9b6e-9738270e6a8g](https://github.com/user-attachments/assets/b30754f2-a401-4127-aa5f-ed053d9f5c75)
    
    After fix:
    
    
![img_v3_02hs_750960cf-9ebd-41e1-8f13-b41e5bc094dg](https://github.com/user-attachments/assets/5a5edb0b-bd7d-439e-92c2-0ed69589a7b5)
    
    
![img_v3_02hs_7e111a74-bacb-43e0-8acb-ec406ce68d8g](https://github.com/user-attachments/assets/556af476-7ea0-4924-880e-183f2cf9e870)
---
 .../src/main/java/org/apache/doris/common/util/ProfileManager.java       | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/common/util/ProfileManager.java 
b/fe/fe-core/src/main/java/org/apache/doris/common/util/ProfileManager.java
index 1984278b409..faa93d98529 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/common/util/ProfileManager.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/common/util/ProfileManager.java
@@ -439,6 +439,7 @@ public class ProfileManager {
         try {
             queryIdToProfileMap.clear();
             queryIdDeque.clear();
+            queryIdToExecutionProfiles.clear();
         } finally {
             writeLock.unlock();
         }


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

Reply via email to