-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix](auditlog) add missing audit log fields and duplicate audit log error #42262
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
d8dfde3
to
88f6f3e
Compare
b0811f1
to
a3326fe
Compare
run buildall |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
8cd874e
to
a15944e
Compare
run buildall |
run buildall |
run buildall |
e6090a9
to
c267ab4
Compare
run buildall |
run buildall |
run buildall |
d7705a1
to
0fb215d
Compare
run buildall |
PR approved by at least one committer and no changes requested. |
…error (#42262) ### What problem does this PR solve? Problem Summary: #### Issue 1 There are some fields that is missing in audit log table. This PR add them all: - shuffle_send_rows - shuffle_send_bytes - scan_bytes_from_local_storage - scan_bytes_from_remote_storage - is_nereids - compute_group Notice that `compute_group` is previously name `cloudClusterName` in fe.audit.log, which is incorrect, so I change it to the right name. After this PR, all these fields will be saved in both audit log table and fe.audit.log #### Issue 2 The `AuditEventBuilder` need to be reset at each run, the there will be duplicate audit log. #### Issue 3 Add a new statement `call flush_audit_log()`. It will flush the audit log immediately to audit_log table. This is useful in test case, so that we don't need to wait 1min to flush the audit log data. ### Release note [fix](auditlog) add missing audit log fields and duplicate audit log error
…error (apache#42262) ### What problem does this PR solve? Problem Summary: #### Issue 1 There are some fields that is missing in audit log table. This PR add them all: - shuffle_send_rows - shuffle_send_bytes - scan_bytes_from_local_storage - scan_bytes_from_remote_storage - is_nereids - compute_group Notice that `compute_group` is previously name `cloudClusterName` in fe.audit.log, which is incorrect, so I change it to the right name. After this PR, all these fields will be saved in both audit log table and fe.audit.log #### Issue 2 The `AuditEventBuilder` need to be reset at each run, the there will be duplicate audit log. #### Issue 3 Add a new statement `call flush_audit_log()`. It will flush the audit log immediately to audit_log table. This is useful in test case, so that we don't need to wait 1min to flush the audit log data. ### Release note [fix](auditlog) add missing audit log fields and duplicate audit log error
### What problem does this PR solve? Problem Summary: 1. add some missing output blocks for `test_audit_log_behavior.out` 2. `call flush_audit_log()` does not support old planner, add check for it. followup #42262
### What problem does this PR solve? Problem Summary: 1. add some missing output blocks for `test_audit_log_behavior.out` 2. `call flush_audit_log()` does not support old planner, add check for it. followup apache#42262
What problem does this PR solve?
Problem Summary:
Issue 1
There are some fields that is missing in audit log table.
This PR add them all:
Notice that
compute_group
is previously namecloudClusterName
in fe.audit.log,which is incorrect, so I change it to the right name.
After this PR, all these fields will be saved in both audit log table and fe.audit.log
Issue 2
The
AuditEventBuilder
need to be reset at each run, the there will be duplicate audit log.Issue 3
Add a new statement
call flush_audit_log()
. It will flush the audit log immediately to audit_log table.This is useful in test case, so that we don't need to wait 1min to flush the audit log data.
Check List (For Committer)
Test
Behavior changed:
cloudClusterName
in fe.audit.log change tocomputeGroup
. And some fields are added to the audit log table.Does this need documentation?
Release note
fix add missing audit log fields and duplicate audit log error
Check List (For Reviewer who merge this PR)