Repository navigation
feat: support gzip compression for gRPC messages - #646
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: xiaofan-luan The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
This pull request is merged. |
d17e448 to
81c5467
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #646 +/- ##
===========================================
+ Coverage 53.47% 89.47% +36.00%
===========================================
Files 52 451 +399
Lines 4432 18980 +14548
Branches 0 2114 +2114
===========================================
+ Hits 2370 16983 +14613
+ Misses 2062 1994 -68
- Partials 0 3 +3
🚀 New features to boost your workflow:
|
81c5467 to
01c43ce
Compare
yhmo
left a comment
There was a problem hiding this comment.
Reviewed all six changed files. The implementation is sound: channel-level default compression via ChannelArguments::SetCompressionAlgorithm, an ABI-preserving layout change (TLS flag kept in bit 0 of the single transport_flags_ byte so older binaries writing 0/1 still read NONE), and the swap to = default copy-assignment is equivalent to the removed custom one. Both V1 and V2 clients share MilvusConnection, and compression survives database-switch / credential-reset reconnects because the stored ConnectParam copy carries it.
Two low-severity, non-blocking notes were left inline on the new mocked test in test/it/v2/TestUtility.cpp: a positive-path coverage gap and the test's coupling to gRPC's internal error-message text. No correctness, safety, or merge-blocking issues found.
01c43ce to
e93d42e
Compare
Signed-off-by: xiaofanluan <xiaofan.luan@zilliz.com>
e93d42e to
160ecb5
Compare
Change
Enable gzip for outgoing gRPC messages with
ConnectParam::WithCompression(milvus::GrpcCompression::GZIP). Connections default toNONE. The SDK uses the standard gRPC dependency, and copies of the connection parameters retain the selection. The peer selects the response encoding.DEFLATE is unsupported by this SDK option. Milvus v3.0.6 standalone has no deflate decompressor and returns gRPC
UNIMPLEMENTEDfor a deflate-encodedConnect.Verification
UNIMPLEMENTED.milvusdb/milvus:v3.0.6image verified the gzip path, including compressed request and response frames onHasCollection.SDK compression design