Uh oh!
There was an error while loading. Please reload this page.
[feat](audit log) add queue_time_ms in audit_log - #60418
Conversation
hello-stephen
commented
Feb 2, 2026
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
YangShaw
commented
Feb 2, 2026
run buildall |
hello-stephen
commented
Feb 2, 2026
FE UT Coverage ReportIncrement line coverage |
doris-robot
commented
Feb 2, 2026
TPC-H: Total hot run time: 31965 ms |
doris-robot
commented
Feb 2, 2026
ClickBench: Total hot run time: 28.14 s |
751d34e to
2975478CompareYangShaw
commented
Feb 2, 2026
run buildall |
doris-robot
commented
Feb 2, 2026
TPC-H: Total hot run time: 32216 ms |
doris-robot
commented
Feb 2, 2026
ClickBench: Total hot run time: 28.35 s |
hello-stephen
commented
Feb 2, 2026
FE UT Coverage ReportIncrement line coverage |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
hello-stephen
commented
Feb 2, 2026
FE Regression Coverage ReportIncrement line coverage |
YangShaw
commented
Feb 4, 2026
run buildall |
doris-robot
commented
Feb 4, 2026
TPC-H: Total hot run time: 32167 ms |
doris-robot
commented
Feb 4, 2026
ClickBench: Total hot run time: 28.44 s |
hello-stephen
commented
Feb 4, 2026
FE UT Coverage ReportIncrement line coverage |
hello-stephen
commented
Feb 4, 2026
FE Regression Coverage ReportIncrement line coverage |
YangShaw
commented
Feb 4, 2026
run nonConcurrent |
hello-stephen
commented
Feb 4, 2026
FE Regression Coverage ReportIncrement line coverage |
Uh oh!
There was an error while loading. Please reload this page.
### What problem does this PR solve? Related PR: #60418 Problem Summary: Backport #60418 to `branch-4.1` for CIR-21335. The audit log's `query_time` includes workload-group queue time, so users cannot distinguish queue delay from the remaining end-to-end query latency. This PR adds `queue_time_ms` to `__internal_schema.audit_log` and propagates it through the audit event and loader paths. `branch-4.1` already contained the `getQueueTimeMs()` helper, so the conflict resolution keeps that implementation and ports the missing schema, event, loader, call-site, unit-test, and regression-test changes. ### Release note Add `queue_time_ms` to `__internal_schema.audit_log`. ### Validation - `./run-fe-ut.sh --run org.apache.doris.qe.AuditEventProcessorTest` - `./build.sh --be --fe -j100` - `./run-regression-test.sh --run -d regression-test/suites/audit -s test_audit_log_queue_time` - `git diff --check upstream/branch-4.1...HEAD` ### Check List (For Author) - Test <!-- At least one of them must be included. --> - [x] Regression test - [x] Unit Test - [ ] Manual test (add detailed scripts or steps below) - [ ] No need to test or manual test. Explain why: - [ ] This is a refactor/code format and no logic has been changed. - [ ] Previous test can cover this change. - [ ] No code files have been changed. - [ ] Other reason <!-- Add your reason? --> - Behavior changed: - [x] No. - [ ] Yes. <!-- Explain the behavior change --> - Does this need documentation? - [x] No. - [ ] Yes. <!-- Add document PR link here. eg: apache/doris-website#1214 --> ### Check List (For Reviewer who merge this PR) - [ ] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into --> Co-authored-by: Fy <fuyu0824@pku.edu.cn>
What problem does this PR solve?
Add a queue_time_ms column to table __internal_schema.audit_log to track per-query queueing behavior and elapsed time.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)