morrySnow opened a new pull request, #68083:
URL: https://github.com/apache/doris/pull/68083
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary:
The built-in audit loader currently sends every Stream Load batch as
uncompressed text. This PR gzip-compresses the request body and adds the
`compress_type: gz` Stream Load header, reducing network traffic for audit
batches. The optional external audit loader plugin is unchanged.
### Release note
Enable gzip compression for built-in audit log Stream Load requests.
### Check List (For Author)
- Test
- [ ] Regression test
- [x] Unit Test
- [x] 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
Unit test:
```text
./run-fe-ut.sh --run org.apache.doris.plugin.audit.AuditStreamLoaderTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
BUILD SUCCESS
```
Build and manual verification:
- Built FE successfully with `DISABLE_BUILD_UI=ON ./build.sh --fe`.
- Deployed and restarted FE with the built-in audit loader enabled.
- Verified BE received `compress_type: gz` and successfully loaded an
audit batch with 791 compressed bytes and 5056 decompressed bytes.
- Verified a marker query was written to `__internal_schema.audit_log`.
- Behavior changed:
- [ ] No.
- [x] Yes. Built-in audit log Stream Load request bodies are now
gzip-compressed.
- Does this need documentation?
- [x] No.
- [ ] Yes.
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label
--
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]