linrrzqqq opened a new pull request, #68658: URL: https://github.com/apache/doris/pull/68658
### What problem does this PR solve? Issue Number: N/A Related PR: N/A An execution profile is registered before query dispatch. If dispatch fails, for example while downloading a UDF JAR, the initial profile summary is never added to the historical profile map. When the query finishes below `auto_profile_threshold_ms`, cleanup removes its execution profile only if it finds a historical profile. The execution profile therefore remains in FE memory and continues to retain query objects. In a local reproduction, three short failed queries left three execution profiles and no historical profiles. Pass the current Profile to the cleanup method so it removes all associated execution profiles regardless of whether a historical profile was added. Add tests for failure before the first summary update, normal short-query cleanup, and a Profile containing multiple execution profiles. ### Release note Fix FE memory growth caused by retained execution profiles from short queries that fail during dispatch. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
