Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable ArrowFlight compression #3403

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

tisonkun
Copy link
Collaborator

@tisonkun tisonkun commented Feb 28, 2024

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

This closes #1445.

Although the issue suggests we enable compression for gRPC services also, I noticed that we are now initiating a lot of gRPC services. We may instead first sort out them so that we can determinate which services can turn on this feature and how their clients communicate with them.

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.
  • This PR does not require documentation updates.

Refer to a related PR or issue link (optional)

Signed-off-by: tison <wander4096@gmail.com>
@github-actions github-actions bot added the docs-not-required This change does not impact docs. label Feb 28, 2024
Comment on lines +54 to +55
.try_with_compression(Some(arrow::ipc::CompressionType::LZ4_FRAME))
.unwrap();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Always Ok because the default option has metadata_version = MetadataVersion::V5.

But I'm a bit hesitate if we should hard code the compression type here, while I agree that we don't need to make it configurable. Fortunately, the receiver (reader) side would determinate the compression type and do the necessary decompresson work.

Signed-off-by: tison <wander4096@gmail.com>
Copy link
Collaborator

@fengjiachun fengjiachun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

codecov bot commented Feb 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.63%. Comparing base (a8cbec8) to head (78c8910).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3403      +/-   ##
==========================================
- Coverage   85.03%   84.63%   -0.40%     
==========================================
  Files         889      889              
  Lines      146153   146326     +173     
==========================================
- Hits       124281   123848     -433     
- Misses      21872    22478     +606     

@tisonkun tisonkun added this pull request to the merge queue Feb 28, 2024
Merged via the queue into GreptimeTeam:main with commit dc205a2 Feb 28, 2024
15 checks passed
@tisonkun tisonkun deleted the grpc-compression branch February 28, 2024 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-not-required This change does not impact docs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable grpc compression
3 participants