zy-kkk opened a new pull request, #53211:
URL: https://github.com/apache/doris/pull/53211

   #### Summary
   
     Fixed a bug in audit log truncation messages where the parameter name 
displayed in truncation
     messages was misleading and didn't accurately reflect which parameter 
actually controlled the
     truncation behavior.
   
   #### Problem
   
     - For INSERT statements, truncation messages always showed 
audit_plugin_max_insert_stmt_length
     regardless of which parameter actually limited the truncation
     - When audit_plugin_max_sql_length < audit_plugin_max_insert_stmt_length, 
the actual truncation
     was controlled by audit_plugin_max_sql_length, but the message incorrectly 
displayed
     audit_plugin_max_insert_stmt_length
     - This caused confusion for users trying to understand and adjust 
truncation behavior
   
   #### Solution
   
     - Modified AuditLogHelper.java to dynamically determine which parameter 
actually controls
     truncation
     - Truncation messages now display the correct parameter name that actually 
limits the statement
     length
     - Updated InternalSchemaInitializer.java to fix inconsistent schema 
documentation
   
   #### Changes
   
     - AuditLogHelper.java: Fixed parameter name display logic in INSERT 
statement truncation
     - InternalSchemaInitializer.java: Fixed frontend_ip field length 
documentation consistency
     - test_audit_log_behavior.groovy: Enhanced test coverage with 
comprehensive parameter combination
      scenarios
   
   #### Test Coverage
   
     - Multi-row INSERT with different parameter combinations
     - Single-row INSERT behavior verification
     - Edge cases with equal parameter values
     - SELECT statement truncation behavior
     - No-truncation scenarios


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