dolfinus opened a new pull request, #51724:
URL: https://github.com/apache/doris/pull/51724

   ### What problem does this PR solve?
   
   Partially solves #49915
   
   Problem Summary:
   * Add `sessionId` field to `AuditEvent` class
   * Update structure of internal `audit_log` table to include this column
   * Update `AuditLogHelper` to populate this field using ConnectionContext info
   * Add `session_id` column to `AuditLoaderPlugin` table
   * Use `session_id` column as part of primary key instead of `client_ip` 
(could be reverted)
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test <!-- At least one of them must be included. -->
       - [ ] 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:
       - [ ] No.
       - [X] Yes. Added new column to `audit_log` table & AuditLoaderPlugin
   
   - Does this need documentation?
       - [ ] No.
       - [X] Yes. https://github.com/apache/doris-website/pull/2483
   
   ### 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 -->
   
   


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

Reply via email to