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:

After clean all profile, summary profile is clear, but runtime profile
and counter still exists.

After fix:


---
.../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]