weizuo93 opened a new pull request #8473:
URL: https://github.com/apache/incubator-doris/pull/8473


   # Proposed changes
   
   Support audit for stream load 2PC.
   
   Audit info for preCommit:
   ```
   2022-03-14 19:53:13,159 [stream_load] 
|Label=1647258778-941|TxnId=23026|TwoPhaseCommit=true|Db=test_db|Table=table_test|User=root|ClientIp=172.17.0.2|Status=Success|Message=transaction
 precommit 
successfully|Url=N/A|TotalRows=2000|LoadedRows=2000|FilteredRows=0|UnselectedRows=0|LoadBytes=89275|StartTime=2022-03-14
 19:52:58.905|PreCommitTime=2022-03-14 
19:53:01.350|SecondPhaseOperation=|FinishTime=
   ```
   
   Audit info for commit:
   ```
   2022-03-14 19:51:33,214 [stream_load] 
|Label=|TxnId=23024|TwoPhaseCommit=true|Db=|Table=|User=root|ClientIp=|Status=Success|Message=transaction
 commit 
successfully|Url=|TotalRows=-1|LoadedRows=-1|FilteredRows=-1|UnselectedRows=-1|LoadBytes=-1|StartTime=|PreCommitTime=|SecondPhaseOperation=commit|FinishTime=2022-03-14
 19:51:33.205
   ```
   
   Audit info for user abort:
   ```
   2022-03-14 19:52:16,803 [stream_load] 
|Label=|TxnId=23025|TwoPhaseCommit=true|Db=|Table=|User=root|ClientIp=|Status=Success|Message=transaction
 abort 
successfully|Url=|TotalRows=-1|LoadedRows=-1|FilteredRows=-1|UnselectedRows=-1|LoadBytes=-1|StartTime=|PreCommitTime=|SecondPhaseOperation=abort|FinishTime=2022-03-14
 19:52:16.802
   ```
   
   Audit info for timeout abort:
   ```
   2022-03-14 19:54:13,137 [stream_load] 
|Label=|TxnId=23026|TwoPhaseCommit=true|Db=|Table=|User=|ClientIp=|Status=Success|Message=abort
 by txn manager for 
timeout|Url=|TotalRows=-1|LoadedRows=-1|FilteredRows=-1|UnselectedRows=-1|LoadBytes=-1|StartTime=|PreCommitTime=|SecondPhaseOperation=abort|FinishTime=2022-03-14
 19:54:13.136
   ```
   
   Audit info for general stream load:
   ```
   2022-03-14 19:55:13,202 [stream_load] 
|Label=1647258897-225|TxnId=23028|TwoPhaseCommit=false|Db=test_db|Table=table_test|User=root|ClientIp=172.17.0.2|Status=Success|Message=OK|Url=N/A|TotalRows=2000|LoadedRows=2000|FilteredRows=0|UnselectedRows=0|LoadBytes=89288|StartTime=2022-03-14
 19:54:57.454|PreCommitTime=|SecondPhaseOperation=|FinishTime=2022-03-14 
19:54:59.882
   ```
   
   ## Checklist(Required)
   
   1. Does it affect the original behavior: No
   2. Has unit tests been added: No Need
   3. Has document been added or modified: No Need
   4. Does it need to update dependencies: No
   5. Are there any changes that cannot be rolled back: No
   
   


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to