Gabriel39 opened a new pull request, #67053: URL: https://github.com/apache/doris/pull/67053
## What problem does this PR solve? External-table INSERT audit records can miss the final scan, CPU, and memory counters because BE only reports query statistics on a periodic interval. Scheduling delay or an RPC retry can therefore outlive the FE audit wait window. ## What is changed? - Wake the existing runtime query statistics reporter after a LOAD query freezes its final counters. - Coalesce completion notifications while retaining periodic reporting as the retry path. - Wake the reporter during daemon shutdown so the background thread exits promptly. - Add an ASAN unit test for wake-up and notification coalescing behavior. ## Testing - `./run-be-ut.sh --run --filter=RuntimeQueryStatisticsMgrTest.* -j 32` - clang-format 16 check on all affected C/C++ files - `git diff --check` ## Issue DORIS-28101 -- 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]
